Skip to content

Conversation

@mmatera
Copy link
Contributor

@mmatera mmatera commented Jan 28, 2023

This would be the simplest part of #766, including tests and changes in Infinity and Precision. Some of the new tests are commented / marked as xfail because require the other changes.

# FIXME: handling DirectedInfinity[-I] leads to problems
# "Gudermannian[6/4 Pi I]": "DirectedInfinity[-I]",
"Gudermannian[3 I / 2 Pi]": "DirectedInfinity[-I]",
# Handled already
Copy link
Member

Choose a reason for hiding this comment

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

This comment is not correct, right?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

BTW, this is another reason to have a way to do arithmetic in an context-independent way: When rules are loaded, it makes a difference if we write Gudermannian[6 / 4 Pi I]-> repl and Gudermannian[3 I / 2 Pi]-> repl:
the first rule is never applied. Ideally, at loading time, the pattern should be brought to a canonical form.

This could be achieved by evaluating the rule. However, in our current framework, it is not possible, because the evaluation requires definitions that might not already be loaded. But most of the needed changes are just arithmetic evaluations, which could be perfectly done without an Evaluation object.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I removed the commented lines now. I am going to merge this when CI finishes.

@rocky
Copy link
Member

rocky commented Jan 28, 2023

LGTM - thanks for doing this. There is one small comment regarding possibly crud from before.

@mmatera mmatera merged commit 1b3641d into master Jan 28, 2023
@mmatera mmatera deleted the improve_infinity branch January 28, 2023 22:35
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.

3 participants