log10

Function log10 

Source
pub fn log10(arg: &Expression) -> Expression
Expand description

Evaluate base-10 logarithm log10(x)

§Mathematical Definition

log10(x) = log_10(x)

§Arguments

  • arg - Expression to compute logarithm of

§Returns

Logarithm expression

§Examples

use mathhook_core::functions::elementary::log_eval::log10;
use mathhook_core::expr;

let result = log10(&expr!(10));
assert_eq!(result, expr!(1));