From ad4c09192e6144e3e914748f9ce4edf371cf75b8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juan=20Manuel=20Tom=C3=A1s?= Date: Thu, 7 Jan 2021 11:57:02 -0300 Subject: Initial commit Starting off with a function able to turn recursive linear interpolations into their corresponding polynomial. --- src/main.rs | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 src/main.rs (limited to 'src/main.rs') diff --git a/src/main.rs b/src/main.rs new file mode 100644 index 0000000..1e4f704 --- /dev/null +++ b/src/main.rs @@ -0,0 +1,5 @@ +fn main() { + let a = poly::Lerp::new(vec![1.0, 5.0, 8.0, 3.0, 10.0]); + println!("{:?}", a); + println!("{:?}", poly::lp(a)); +} -- cgit v1.2.3