1.0.1 • Published 1 year ago

euler-method2 v1.0.1

Weekly downloads
-
License
ISC
Repository
-
Last release
1 year ago

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 });
1.0.1

1 year ago

1.0.0

1 year ago