Blyx Nest Blyx language
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.

Source repository · Package JSON

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

VersionPackageSource commitSHA-256
0.1.1Download ZIP · Browse files0c0a380759d5d22516cbfcae09ac049a43336e1fef0c8a59e37a288baa8f51fe9621463faf
0.1.0Download ZIP · Browse files6349f237844eb11faf84b6378f74f4b7f1c8aca6c97b260723d7c08ee60b2b8c64bf5d9714