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

System`Element typos #830

Merged
merged 2 commits into from
Apr 1, 2023
Merged

System`Element typos #830

merged 2 commits into from
Apr 1, 2023

Conversation

mmatera
Copy link
Contributor

@mmatera mmatera commented Mar 31, 2023

This PR just fixes a couple of typos in the Element.m autoload module

(*General Algebraic*)

Element[z:(_Plus|_Times), domine:(Booleans|Integers|Rationals|Reals|Complexes|Algebraics)]:=Element[Alternatives@@z, domine];
Element[_Times, Primes]:=Element[Alternatives@@z, Primes];
Element[z:(_Plus|_Times), domine:(Integers|Rationals|Reals|Complexes|Algebraics)]:=Element[Alternatives@@z, domine];
Copy link
Member

Choose a reason for hiding this comment

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

is "domine" a misspelling of "domain"?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Right! Fixed now

@@ -89,15 +89,12 @@
Element[True|False|E|EulerGamma|Khinchin|MachinePrecision|Pi, Algebraics]:=False;
Element[z_DirectedInfinity, domine:(Booleans|Integers|Rationals|Reals|Complexes)]:=False;
Element[z_Power, Integers]:= (Element[Alternatives@@z, Integers] && z[[2]]>=0);
Element[z_Power/;Element[Alternatives@@z, ], Integers]:= (z[[2]]>=0);
Element[z_Power/;Element[Alternatives@@z, Integers], Integers]:= (Print["OK"];z[[2]]>=0);
Copy link
Member

Choose a reason for hiding this comment

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

Is this "Print["OK"]" supposed to be here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Not it doesn't. Removed now.

@rocky
Copy link
Member

rocky commented Apr 1, 2023

LGTM - thanks for the fixes.

@mmatera mmatera merged commit 83d78f1 into master Apr 1, 2023
@mmatera mmatera deleted the fix_Element_typos branch April 1, 2023 13:57
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