Take the 2-minute tour ×  I'd like to transform a mathematic
function with one variable in php, e.g. y = 100-2x². Is there
any way to do that?  share|improve this question What do you
mean by ‘transform’? –  Marcel Korpel Apr 30 '11 at 21:46
symbolic algebra maybe? –  jon_darkstar Apr 30 '11 at 21:57 Sry,
I'd like to have the equation dependent on the y-variable. For
example, there is the following equation: y= 2*x+100 The result
should be: x = (y-100)/2 , so that the x-variable is on the left
side –  Florian Apr 30 '11 at 22:51 add comment  closed as not a
real question by duffymo, mu is too short, Tim Cooper,
woodchips, bmargulies May 1 '11 at 3:10   1 Answer  If you're
looking for "power", you can use PHP's pow($base, $exp)
function:  $y = 100 - 2 * pow($x, 2);  So a function would be:
function f($x) {     return 100 - 2 * pow($x, 2); share|improve
this answer Thanks for your reply. Unfortunately, any equation
with one variable is possible, including logarithmic functions,
or with a power of n. Do you thi