Updates:
        Cc: fredrik.johansson

Comment #6 on issue 1321 by Vinzent.Steinberg: trigonometric functions of  
floating-point numbers should return floating-point numbers
http://code.google.com/p/sympy/issues/detail?id=1321

I think we should always use full float precision (15 or 16 digits) for  
floats.

There are ill-conditioned problems leading to quite wrong results if you  
just
evaluate them using float precision. So I think it's affordable to use
cos(0.1).evalf() instead of cos(0.1), because evalf() is intelligent about  
such problems.

But you could mention that it's the user's fault, because using floats he  
risks wrong
results. Maybe it's better to just evaluate floats, it might be in general  
more useful.

Fredrik, what do you think about all this?

--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"sympy-issues" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/sympy-issues?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to