ruut-functions 0.0.4

A naive implementation of a program to parse math function from string to AST, with the ability to derive and integrate
Documentation

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.);