Skip to content

Commit

Permalink
Reverted incorrect atan2 optimisation.
Browse files Browse the repository at this point in the history
  • Loading branch information
sletz committed Aug 28, 2023
1 parent 3985022 commit 8fb5a2b
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions compiler/extended/atan2prim.hh
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,6 @@ class Atan2Prim : public xtended {
num n, m;
if (isNum(args[0], n) && isNum(args[1], m)) {
return tree(atan2(double(n), double(m)));
} else if (args[0] == args[1]) {
return tree(M_PI/4.0);
} else {
return tree(symbol(), args[0], args[1]);
}
Expand Down

0 comments on commit 8fb5a2b

Please sign in to comment.