I want to write an equation solver, Like Microsoft Student Graphing Calculator(Equation Solving tab). I wanna solve equations like this : 4.x = 2.x + 2 Can anybody give me some sample code, or any suggestion Thank you
: I want to write an equation solver, Like Microsoft Student Graphing Calculator(Equation Solving tab). : I wanna solve equations like this : : 4.x = 2.x + 2 : Can anybody give me some sample code, or any suggestion : Thank you : For first degree equations only:
- a = left side x-coefficient; - b = right side x-coefficient; - c = left side constant; - d = right-side constant;
Comments
: I wanna solve equations like this :
: 4.x = 2.x + 2
: Can anybody give me some sample code, or any suggestion
: Thank you
:
For first degree equations only:
- a = left side x-coefficient;
- b = right side x-coefficient;
- c = left side constant;
- d = right-side constant;
Now x = (d - c) / (a - b)
Greets,
Eric Goldstein
http://www.gvh-maatwerk.nl