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

Expression("1.1.000000000000001^1234567").eval() takes a very long time #8

Open
835127729 opened this issue Oct 15, 2023 · 3 comments

Comments

@835127729
Copy link

as the title metioned, code
Expression("1.000000000000001^1234567").eval();
takes a very long time to finish caculating.

@widavies
Copy link
Contributor

Thanks, I'll fix this when I get a chance.

@HARUM1122
Copy link

HARUM1122 commented Dec 2, 2023

I was facing the same issue therefore, i simply used math.pow. It will give you the result instantly.

@widavies
Copy link
Contributor

widavies commented Dec 4, 2023

Yeah, this library is supposed to support arbitrary precision (> 64 bit math) but my power implementation is really slow. I'll work on an optimized one when I have a chance. Thanks.

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

No branches or pull requests

3 participants