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

move basic arithmetic to mathics.eval.arithmetic #789

Merged
merged 3 commits into from
Feb 15, 2023
Merged

Conversation

mmatera
Copy link
Contributor

@mmatera mmatera commented Feb 14, 2023

This PR starts to move the context independent arithmetic to a separate module. Interestingly, just by moving around a little piece of code, the doctest time seems to be reduced in another 10 seconds in my machine, it is, a 13%.

@rocky
Copy link
Member

rocky commented Feb 14, 2023

@mmatera looks like the new files haven't been added into git yet.

if prec=None, use floating point arithmetic.
Otherwise, work with prec bits of precision.
"""
# TODO: rocky, please help me with the annotations
Copy link
Member

@rocky rocky Feb 14, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This TODO is done now.

@rocky
Copy link
Member

rocky commented Feb 14, 2023

LGTM - one small comment

@mmatera mmatera merged commit ab5c2f6 into master Feb 15, 2023
@mmatera mmatera deleted the eval_arithmetic_0 branch February 15, 2023 01:10
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

Successfully merging this pull request may close these issues.

2 participants