Math equation solving - Programmers Heaven

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Math equation solving

hdayvaryhdayvary Posts: 35Member
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

Comments

  • tsagldtsagld Posts: 621Member
    : 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;

    Now x = (d - c) / (a - b)



    Greets,
    Eric Goldstein
    http://www.gvh-maatwerk.nl


Sign In or Register to comment.