PHP - Equations
Hi
I have a user inputted value (e.g. "$value = "5x^2 - 6x - 5x + 9 = 72 - 5";") which is a Quadratic equation that needs balancing (for the example above I want to rearrange it so that the 72-5=67 and the 67 goes across the formula to make 5^x -11x -57 = 0). Does anyone have any ideas how I should go about doing this? I was going to use string functions to try and split the values apart and then add them to seperate variables to create the quadratic equation. Does anyone have any other / better ideas for this? Thanks Rhys Similar TutorialsI am trying to create a math equation inside a variable but I am struggling to achieve the desired result. On one php page I have this:
$x = "date('Y')"; On my main page I have linked to the above and also $description but the result I am getting is: In this classic lecture which was delivered over date('Y') - 1989 years ago,
I want to create a variable so I don't need to go back every year and change the description. Is this possible? Robert
hello I am a chemical teacher in the middle school I hope Balancing Chemical Equations via PHP I google some thing perhaps the CML( http://en.wikipedia.org/wiki/Chemical_Markup_Language) may give me a hand. and this one the http://shinkirou.org/blog/2010/11/balancing-chemical-equations-with-linear-algebra/ tells me using the Linear Algebra is a good way how can I Balancing Chemical Equations via PHP( by CML )? is their a demo ? thank you very much~! |