Blyx Nest Blyx language
Registry / Library
library · v0.1.1

Central Slope

Estimate a centered finite-difference slope at an interior sample of uniformly spaced data. Invalid positions or spacing return zero.

Source repository · Package JSON

Use Central Slope

use vendor::central_slope::central_slope;

Run the example

nest demo central_slope@0.1.1
blyxc native-run central_slope-demo/main.blyx
Example source and expected output
use vendor::central_slope::central_slope;

fn main() {
    println!(central_slope([0,1,4],1,1.0));
}

Expected output

2

Published versions

VersionPackageSource commitSHA-256
0.1.1Download ZIP · Browse files19b867c413df7f1b81ec739885e2dea8534721e58ba3530a10bd2b0d5b76e88e9e384bb605
0.1.0Download ZIP · Browse files6349f23784ed55814a0360616351388541618ddbe1c8c35b083d65a561546e71b9c02b7a76