Registry / Library

library · v0.1.1
Newton Step
Apply one scalar Newton update to a root estimate with a caller-supplied derivative. Preserve the estimate for a zero derivative.
Use Newton Step
use vendor::newton_step::newton_step;
Run the example
nest demo newton_step@0.1.1
blyxc native-run newton_step-demo/main.blyx
Example source and expected output
use vendor::newton_step::newton_step;
fn main() {
println!(newton_step(3.0,5.0,6.0));
}
Expected output
2.1666666666666665
Published versions
| Version | Package | Source commit | SHA-256 |
|---|---|---|---|
| 0.1.1 | Download ZIP · Browse files | 0c0a380759 | d5d22516cbfcae09ac049a43336e1fef0c8a59e37a288baa8f51fe9621463faf |
| 0.1.0 | Download ZIP · Browse files | 6349f23784 | 4eb11faf84b6378f74f4b7f1c8aca6c97b260723d7c08ee60b2b8c64bf5d9714 |