Hi
I am currently devoloping a php quation plot system, as shown here:
http://w3senteret.com/ymse/kalkulator/graf.php
I need a preg match expression to help me deal with some cases of math:
x2, x3, x4 and xn need to be pow(x, n)
2x, 3x, 4x and nx need to be n*x
Can anyone help me out with theese two expressions?