@yeungon/math-generator

0.0.5 • Public • Published

math-generator (WIP)

ALERT - Work in progress (10% completed) - Generating mathematics problem automatically.

Inspirated and ported from the Python package https://github.com/lukew3/mathgenerator.

Also learn and added some functions from https://www.mathgoodies.com/worksheets/generator and https://mathsbot.com/

Install

npm install math-generator

Test

npm test

Usage (current)

import {
	random,
	isEmptyObject,
	addition,
	basicAlgebra,
	absoluteDifference,
	comparisonFraction,
	cubeRoot,
	fractionDivision,
	division,
	exponentiation,
	factorial,
} from 'math-generator';

random(10);
//=> '[1 - > 9]'

API

random(input, options?)

input

Type: number

options

Type: number

Package Sidebar

Install

npm i @yeungon/math-generator

Weekly Downloads

0

Version

0.0.5

License

MIT

Unpacked Size

12 kB

Total Files

21

Last publish

Collaborators

  • yeungon