pub fn margin1<T: Float>(m: T, a: Fn1<T>) -> Fn1<T>where f64: Cast<T>,
Adds a margin to input of a 1d -> 3d function.
1d -> 3d