@danielsimonjr/mathts-compat
v0.4.37
Published
mathjs compatibility layer for MathTS
Maintainers
Readme
@danielsimonjr/mathts-compat
Mathjs compatibility shim for MathTS.
A drop-in mathjs-compatible API over MathTS — the quickest migration path for existing mathjs users.
Install
npm install @danielsimonjr/mathts-compatWhat it provides
create(all)exposesmath.evaluate,math.chain,math.config, and functions names such asmath.createUnit(spread from@danielsimonjr/mathts-functions). Each instance'sconfigis isolated:create(all, { number: 'BigNumber' })does not change bareevaluatefrom@danielsimonjr/mathts-functions.- Direct named imports (
add,matrix, …) come fromcompat/src/shims.ts. There is nomath.importand no namedimport/createUnit/configexport from this package. - Delegates to
@danielsimonjr/mathts-coretypes +@danielsimonjr/mathts-functionsoperations. Seedocs/api/compat.mdfor the full export index.
License
MIT (c) Daniel Simon Jr.
