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

Method function

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

Source from the content-addressed store, hash-verified

41
42impl RootFindingProblem<1, 1, (f64, f64)> for Cubic {
43 fn function(&self, x: [f64; 1]) -> Result<[f64; 1]> {
44 self.eval(x)
45 }
46 fn initial_guess(&self) -> (f64, f64) {
47 (0.0, 2.0)
48 }

Callers 1

findMethod · 0.45

Calls 1

evalMethod · 0.45

Tested by

no test coverage detected