Skip to content

Commit

Permalink
The cosine _fast_float_ function returned math.sin; this fixes it.
Browse files Browse the repository at this point in the history
  • Loading branch information
jasongrout committed Nov 19, 2008
1 parent db7aeb3 commit cff0509
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/sage/calculus/calculus.py
Original file line number Diff line number Diff line change
Expand Up @@ -6815,7 +6815,8 @@ def _fast_float_(self, *vars):
<sage.ext.fast_eval.FastDoubleFunc object at 0x...>
sage: sin._fast_float_()
<sage.ext.fast_eval.FastDoubleFunc object at 0x...>
sage: sin._fast_float_()(0)
0.0
"""
return fast_float.fast_float_func(math.sin, fast_float.fast_float_arg(0))

Expand Down Expand Up @@ -6855,9 +6856,10 @@ def _fast_float_(self, *vars):
<sage.ext.fast_eval.FastDoubleFunc object at 0x...>
sage: cos._fast_float_()
<sage.ext.fast_eval.FastDoubleFunc object at 0x...>
sage: cos._fast_float_()(0)
1.0
"""
return fast_float.fast_float_func(math.sin, fast_float.fast_float_arg(0))
return fast_float.fast_float_func(math.cos, fast_float.fast_float_arg(0))


cos = Function_cos()
Expand Down

0 comments on commit cff0509

Please sign in to comment.