Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pretty print arithmetic expressions #40

Open
colgreen opened this issue Jul 21, 2016 · 2 comments
Open

Pretty print arithmetic expressions #40

colgreen opened this issue Jul 21, 2016 · 2 comments
Labels

Comments

@colgreen
Copy link

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))

@joshbtn
Copy link
Owner

joshbtn commented Jul 26, 2016

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

@FWDsux
Copy link

FWDsux commented Oct 3, 2016

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 )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants