mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
13 lines
489 B
TypeScript
13 lines
489 B
TypeScript
import integrate = require('integrate-adaptive-simpson');
|
|
import integrateVector = require('integrate-adaptive-simpson/vector');
|
|
|
|
const functionTotest = (x: number) => x * 4;
|
|
|
|
const integral: number = integrate(functionTotest, 12, 0);
|
|
integrate(functionTotest, 12, 0, 0.01);
|
|
integrate(functionTotest, 12, 0, 0.01, 17);
|
|
|
|
const ventorIntegral: number[] = integrateVector(functionTotest, 12, 0);
|
|
integrateVector(functionTotest, 12, 0, 0.01);
|
|
integrateVector(functionTotest, 12, 0, 0.01, 17);
|