Function sqrt
Source pub fn sqrt(func: Function) -> Function
Expand description
Creates a Function equal to the square root of the passed Function
i.e f(x) ⟹ √f(x)
Example:
let x = function::default();
let sqrt_of_x = sqrt(x);
assert_eq!(sqrt_of_x.call(4.), 2.);