MCPcopy Create free account
hub / github.com/Axect/Peroxide / eval

Method eval

tests/root.rs:37–39  ·  view source on GitHub ↗
(&self, x: [f64; 1])

Source from the content-addressed store, hash-verified

35
36impl Cubic {
37 fn eval(&self, x: [f64; 1]) -> Result<[f64; 1]> {
38 Ok([(x[0] - 1f64).powi(3)])
39 }
40}
41
42impl RootFindingProblem<1, 1, (f64, f64)> for Cubic {

Callers 5

test_cubic_rootFunction · 0.45
functionMethod · 0.45
test_sine_rootFunction · 0.45

Calls 3

powiMethod · 0.45
sinMethod · 0.45
cosMethod · 0.45

Tested by 4

test_cubic_rootFunction · 0.36
test_sine_rootFunction · 0.36