Permalink
Browse files

acos 1 == 0

  • Loading branch information...
1 parent 70c84fc commit eaef780b32e1d5f2fdc06a0498c9492ddc7718a9 Danny Yoo committed Nov 14, 2010
Showing with 1 addition and 0 deletions.
  1. +1 −0 src/js-numbers.js
View
@@ -633,6 +633,7 @@ if (typeof(exports) !== 'undefined') {
// acos: scheme-number -> scheme-number
var acos = function(n) {
+ if (eqv(n, 1)) { return 0; }
if (typeof(n) === 'number') {
return FloatPoint.makeInstance(Math.acos(n));
}

0 comments on commit eaef780

Please sign in to comment.