Skip to content

Can it be installed by submodules? #2655

Answered by josdejong
mig82 asked this question in Q&A
Discussion options

You must be logged in to vote

Yes, if you're using ES6 imports you can just import the functions you need. The regular functions like the following are relatively large since they include BigNumber, Matrix, etc:

import { gcd } from 'mathjs'

If you only need a number implementation I think the following will work for you:

import { gcd } from 'mathjs/number'

For more info see:

https://mathjs.org/docs/getting_started.html
https://mathjs.org/docs/custom_bundling.html

Replies: 7 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by josdejong
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #1784 on August 17, 2022 08:45.