ln

Function ln 

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

Evaluate natural logarithm ln(x)

§Mathematical Definition

ln(x) = log_e(x), inverse of exp(x)

§Arguments

  • arg - Expression to compute logarithm of

§Returns

Logarithm expression

§Examples

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

let result = ln(&expr!(1));
assert_eq!(result, expr!(0));