MCPcopy Create free account
hub / github.com/elftausend/graplot / test_poly_3

Function test_poly_3

tests/test.rs:107–122  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

105
106#[test]
107fn test_poly_3() {
108 let mut xs = [0.; 30001];
109
110 let mut add = -15000f64;
111 for idx in 0..=30000 {
112 xs[idx] = add / 10000.;
113 add += 1.;
114 }
115
116 let mut ys = [0.; 30001];
117 for (i, y) in ys.iter_mut().enumerate() {
118 *y = xs[i].powf(3.) + xs[i].powf(2.);
119 }
120 let plot = Plot::new((xs, ys));
121 plot.show();
122}
123
124#[test]
125fn test_1_x() {

Callers

nothing calls this directly

Calls 1

showMethod · 0.45

Tested by

no test coverage detected