excelFormulaUtilitiesJS icon indicating copy to clipboard operation
excelFormulaUtilitiesJS copied to clipboard

Pretty print arithmetic expressions

Open colgreen opened this issue 9 years ago • 2 comments

I'm trying to understand an expression with lots of brackets, so was hoping this tool would break the expression onto multiple lines with indentation to show the different levels of nesting.

Just a thought.

E.g. of a longish expression I'm currently looking at:

= (1+exp) * (B23+B25 - (11/24) * $I$2 + B5_(B28-(11/24) * $P$2-B31+(11/24)_$U$2))

colgreen avatar Jul 21 '16 17:07 colgreen

Thanks for the feedback! Interesting Idea. What would you see the example above looking like after it's formatted?

joshbtn avatar Jul 26 '16 01:07 joshbtn

Below is an example of what f'(x) = ( g'(x) * h(x) - h'(x) * g(x) ) / [ h(x) ] ^ 2 would become in pretty print. It would be fantastic to be able to see fractions and parenthesis at a glance vs slogging through a huge line of text. :)

quotient rule

( Pic is from the Wikipedia page on the quotient rule: https://en.wikipedia.org/wiki/Quotient_rule )

FWDsux avatar Oct 03 '16 16:10 FWDsux