Is it possible to change a input string for example sin(pi*x), whereby in the code i have the variables pi and x, such that i can call the sine function as given by the input string. Without having to do string comparison and if statments, as for any general equation composed of sines and exponets and powers this would be really cumbersome

Thanks