[−][src]Macro symbolics_core::apply
Apply any number of substitutions to an expression. These can be numbers or expressions.
Examples
#[macro_use] extern crate symbolics_core; fn main() { let expr = s!(x) * s!(x).sqrt(); assert_eq!(apply!(expr, x=4.).val().unwrap(), 8.); }
#[macro_use] extern crate symbolics_core; use std::f64::consts::E; fn main() { let expr = s!(x) + s!(x).sqrt(); let expr_t = apply!(expr, x = s!(t).ln()); assert_eq!(apply!(expr_t, t = E).val().unwrap(), 2.); }