pub fn modulo(a: &Expression, b: &Expression) -> ExpressionExpand description
Modulo operation
§Mathematical Definition
a mod b = remainder when a is divided by b
§Arguments
a- Dividend expressionb- Divisor expression
§Returns
Modulo expression
§Examples
use mathhook_core::functions::number_theory_eval::modulo;
use mathhook_core::expr;
let result = modulo(&expr!(17), &expr!(5));
assert_eq!(result, expr!(2));