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

The (x*y)^a formula seems valid for x, y = 0 also #25

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

certik
Copy link
Contributor

@certik certik commented Jan 31, 2020

It's this formula: http://fungrim.org/entry/2090c3/, it seems it's valid even if x and/or y are 0.

@fredrik-johansson
Copy link
Owner

If you allow x = 0 or y = 0, you can get factors like 0^-1. It looks like it should still be correct if arithmetic with UnsignedInfinity and Undefined is defined consistently, but my test code can't check this (yet).

@certik
Copy link
Contributor Author

certik commented Jan 31, 2020

I see, I forgot about that. Yes, I would not allow 1/0 at all. So it looks like the assumptions should be modified to something like this:

Assumptions(Or(     
    And(
        Element(x, SetMinus(CC, Set(0))),
        Element(y, SetMinus(CC, Set(0))),
        Element(a, CC)
    ),
    And(
        Element(x, CC),                  
        Element(y, CC),                  
        Element(a, OpenInterval(0, oo))                                 
    ),
))   

Maybe one can also generalize to Re(a) > 0 or something like that.

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