to_Fx

Function to_Fx 

Source
pub fn to_Fx(x: f64, m: i32, b: i32, round: bool) -> Result<Fx, String>
Examples found in repository?
examples/operations.rs (line 4)
3fn main() {
4  let fx1 = to_Fx(10.2, 5, 10, true).unwrap();
5  let fx2 = to_Fx(2.2, 2, 40, true).unwrap();
6
7  // println!("{:?}", fx1.unwrap() + fx2.unwrap());
8
9  let sum = fx1 + fx2;
10
11  println!("{:?} {}", sum, sum.eval());
12  println!("{:?} {}", sum.m, sum.b);
13}