Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
36
impl Cubic {
37
fn eval(&self, x: [f64; 1]) -> Result<[f64; 1]> {
38
Ok([(x[0] - 1f64).powi(3)])
39
}
40
}
41
42
impl RootFindingProblem<1, 1, (f64, f64)> for Cubic {
Callers
5
test_cubic_root
Function · 0.45
function
Method · 0.45
test_sine_root
Function · 0.45
test_cubic_spline_initialization
Function · 0.45
test_cubic_spline_extension
Function · 0.45
Calls
3
powi
Method · 0.45
sin
Method · 0.45
cos
Method · 0.45
Tested by
4
test_cubic_root
Function · 0.36
test_sine_root
Function · 0.36
test_cubic_spline_initialization
Function · 0.36
test_cubic_spline_extension
Function · 0.36