math-function-generator
v2.0.0
Published
Math Function Generator is a Typescript library that can be used to generate various types of math functions (E.g. Linear, Quadratic, Trigonometric) with random coefficient and constant values.
Downloads
12
Readme
Math Function Generator
Math Function Generator is a Typescript library that can be used to generate various types of math functions (E.g. Linear, Quadratic, Trigonometric) with random coefficient and constant values.
Installation
npm install math-function-generator
OR
yarn add math-function-generatorUsage
import { LinearFunction, QuadraticFunction } from 'math-function-generator';
const randomLinearEquations = new LinearFunction().getEquations();
const randomQuadraticEquations = new QuadraticFunction({
subType: 'vertex',
randRange: { min: 2, max: 10 },
}).getEquations();