Python is one way . using the db is a nother (but limited I think) . but if there is a native plugin (like npm package) can be used from inside node code it will be better . but if any one have better solution . tell me about it .
— There's mathjs
— This is what I've used. I don't know about efficiency here, but it's a good and well provisioned library