Supported Features
- Cosine, Sine, Exponential, Natural Logarithm, Tangent, Cotangent, Square Root (sqrt)
- Derivative of the previous functions (including x^sin(x), raising to a function)
- Evaluate a function at a specific value of x
- Definite integral (Numerically)
Api
You can create a function using Function::build("x*sin(x)").unwrap(), the argument is a &str.
let func = Function::build("x*sin(x)").unwrap();
let derivative = func.derivative();
let y = derivative.evaluate(10.);
let integral = func.integrate(0., 10.);