linear-preset-by-coefficients

Generate linear presets from coefficients

MIT License

Downloads
1
Stars
1

linear-preset-by-coefficients

Generate linear presets from coefficients

Install

npm i linear-preset-by-coefficients

Usage

var Decimal = require('linear-arbitrary-precision')(require('floating-adapter'));
var preset = require('linear-preset-by-coefficients')(Decimal);

// all numbers are Decimal
preset(9/5, 32);  // => [[0, 1], [32, 33.8]]

Related projects