Skip to content

Commit

Permalink
code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex-Jordan committed Feb 7, 2024
1 parent 90dc3cc commit 19675f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion macros/contexts/contextLimitedRadical.pl
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ sub _contextLimitedRadical_init {

sub preprad {
my ($a, $b) = @_;
return Formula("0") if $a == 0 or $b == 0;
return Formula("0") if $a == 0 || $b == 0;
return Formula("$a") if $b == 1;
my $simplifieda = abs($a) == 1 ? ($a > 0 ? '' : '-') : $a;
return Formula("$simplifieda sqrt($b)");
Expand Down

0 comments on commit 19675f8

Please sign in to comment.