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

Backend constants #1124

Merged
merged 5 commits into from
Jan 27, 2021
Merged

Backend constants #1124

merged 5 commits into from
Jan 27, 2021

Conversation

rocky
Copy link
Member

@rocky rocky commented Jan 24, 2021

  • Split off constants to its own section/file
  • Simplify, DRY, and regularize methods
  • Add setting Settings`$PreferredBackendMethod to influence how to compute various constants.

Blacken some code.

TODO: Add Method option to N[]

@rocky rocky marked this pull request as draft January 24, 2021 10:56
@rocky rocky marked this pull request as ready for review January 25, 2021 00:34
This is in preparation for constant expansion and handling
new settign Settings`$PreferredBackendMethod

blacken some buffers too.
* Split off segratage Mathemathical constants to its own file.
* Add Settings`$PreferredBackendMethod do indicate which kind of constant
is preferred.
when precision not not specified or None. Otherwise use PrecsionReal
apply_n() DRY'd
Glasher, and Khinchin constants added
Copy link
Contributor

@mmatera mmatera left a comment

Choose a reason for hiding this comment

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

LGTM.

manipulate, quantities, numbertheory, numeric, options, patterns,
plot, physchemdata, randomnumbers, recurrence, specialfunctions, scoping,
strings, structure, system, tensors, xmlformat, optimization)
algebra,
Copy link
Contributor

Choose a reason for hiding this comment

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

I wonder if we could DRY this using the list modules we define a few lines below...

@rocky
Copy link
Member Author

rocky commented Jan 26, 2021 via email

@rocky rocky merged commit 1bd8460 into master Jan 27, 2021
@rocky rocky deleted the backend-constants branch February 7, 2021 00:53
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.

None yet

2 participants