Function xxcalc::polynomial_calculator::functions::log10 [] [src]

pub fn log10(args: Vec<Polynomial>) -> Result<PolynomialEvaluationError>

Computes a decimal logarithm (requires a single constant argument).

Examples

assert_eq!(PolynomialCalculator.process("log10(100)"), Ok(Polynomial::constant(2.0)));Run

Errors

It will return a wrapped PolynomialError::NonConstantError when the argument is not a constant polynomial (a polynomial of degree zero).