Registry / Library

library · v0.1.1
Simpson Uniform
Integrate an odd number of at least three equally spaced samples with composite Simpson weights. Invalid grids return zero.
Use Simpson Uniform
use vendor::simpson_uniform::simpson_uniform;
Run the example
nest demo simpson_uniform@0.1.1
blyxc native-run simpson_uniform-demo/main.blyx
Example source and expected output
use vendor::simpson_uniform::simpson_uniform;
fn main() {
println!(simpson_uniform([0,1,4],1.0));
}
Expected output
2.6666666666666665
Published versions
| Version | Package | Source commit | SHA-256 |
|---|---|---|---|
| 0.1.1 | Download ZIP · Browse files | 1787cad2a2 | af705fcdd75d025e649df596d1125a5fbdf69135204c4d6fd9cdc18261a8abc6 |
| 0.1.0 | Download ZIP · Browse files | 6349f23784 | 10c3ef2dda7fe2ac05db0bc4f1d4734dee0de81a539e66777fe4e9f96ab6243b |