Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re^3: How would you solve a user-inputted simple one-variable Linear Equation

by bitingduck (Chaplain)
on Apr 25, 2015 at 17:39 UTC ( #1124691=note: print w/replies, xml ) Need Help??


in reply to Re^2: How would you solve a user-inputted simple one-variable Linear Equation
in thread How would you solve a user-inputted simple one-variable Linear Equation

I was lazy and left off the righthand side... if you have something like 2+3x+7(x+27)-6= 23x-45-(145+62-5)x then you would just start with a split on the = sign and parse the two halves separately.

  • Comment on Re^3: How would you solve a user-inputted simple one-variable Linear Equation

Replies are listed 'Best First'.
Re^4: How would you solve a user-inputted simple one-variable Linear Equation
by nat47 (Sexton) on Apr 25, 2015 at 18:33 UTC
    Thanks, I appreciate it! Figuring out how to distribute with () and x's is turning out to be more challenging than I thought without using modules like Math::Symbolic

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1124691]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (7)
As of 2018-06-19 20:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?



    Results (114 votes). Check out past polls.

    Notices?