macro_rules! vector_function {
($x:ident, $y:ident, $f1:expr, $f2:expr) => { ... };
($x:ident, $y:ident, $z:ident, $f1:expr, $f2:expr, $f3:expr) => { ... };
}
Expand description
Creates vector functions
§Vector Function macro
This macro takes in two or three identifiers (the variable names) and two or three expressions that may use those variables, and outputs a VectorFunction.
§Examples
use vector_calculus::*;
let F:VectorFunction = vector_function!(x, y, z, y.exp(), x + z, x*y*z);