1.0.0 • Published 3 years ago
euler-method2 v1.0.0
get displacements infomation through initial displacement, velocity, acceleration and time. this information can be used to paint chart, movement trace and so on.
Example
- base usage:
const euler = require('./index.js');
const d = [0, 0];
const v = [10, 10];
const a = [0, 0];
const results = euler(d, v, a, 10);- you can provide greater steps(default 100) param to archieve more prrecise data:
const results = euler(d, v, a, 10, { steps: 120 });