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

Function main

examples/exp_fn.rs:3–10  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1use graplot::{Plot, x};
2
3fn main() {
4 let mut plot = Plot::new((|x: f64| (3f64).powf(x), x(3.)));
5 let plot_2x = Plot::new((|x: f64| (2f64).powf(x), x(4.), "r"));
6 plot.add(plot_2x);
7 let plot_1_2x = Plot::new((|x: f64| (1./2f64).powf(x), x(4.), "b"));
8 plot.add(plot_1_2x);
9 plot.show();
10}

Callers

nothing calls this directly

Calls 3

xFunction · 0.85
addMethod · 0.45
showMethod · 0.45

Tested by

no test coverage detected