euler-method2

1.0.1 • Public • Published

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

/euler-method2/

    Package Sidebar

    Install

    npm i euler-method2

    Weekly Downloads

    0

    Version

    1.0.1

    License

    ISC

    Unpacked Size

    1.37 kB

    Total Files

    3

    Last publish

    Collaborators

    • charlie_lei