Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

can i load only what i need? #946

Closed
zzzgit opened this issue Sep 26, 2017 · 4 comments
Closed

can i load only what i need? #946

zzzgit opened this issue Sep 26, 2017 · 4 comments
Labels

Comments

@zzzgit
Copy link

zzzgit commented Sep 26, 2017

mathjs is too much heavy, more than 60000 lines.
only add subtract multiply divide on bigNumber are needed by me. so, can i just load the these functionalities?

@josdejong
Copy link
Owner

Yes, see:

http://mathjs.org/docs/custom_bundling.html
http://mathjs.org/examples/advanced/custom_loading.js.html

Depending on your use case, if you're just in need of a bignumber library you may not even need mathjs and can directly use decimal.js (which is used in mathjs).

@davidgilbertson
Copy link

+1 it would great to be able to import median from 'mathjs/median' like I can with lodash/date-fns etc.

@zzzgit
Copy link
Author

zzzgit commented Oct 4, 2017

good, thank you all very much
but now,i am directly using use decimal.js as @josdejong suggested me

@josdejong
Copy link
Owner

@davidgilbertson see #71 for a discussion on that

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants