Incorrect evaluations with trigonometric functions
Issue #56
closed
Originally reported on Google Code with ID 56
What steps will reproduce the problem?
1. sin(pi)
2. 1/0
3. 1/sin(pi)
What is the expected output? What do you see instead?
0 -> that is correct
division by zero -> that is correct
-3.33333333333333333333e149 -> should return "division by zero" instead
Similar behaviours occur at least with cos.
Tested in trunk 478 Linux.
Reported by helder.pereira.correia
on 2007-06-24 23:44:05
Comments (4)
-
Account Deleted -
Account Deleted Reported by `helder.pereira.correia` on 2007-07-01 02:14:18 - Status changed: `Fixed`
-
repo owner -
assigned issue to
- edited description
- changed milestone to 0.8
- changed component to functions
-
assigned issue to
-
repo owner - changed status to closed
- Log in to comment
``` Maybe you created an underflow zero in your first command sin(pi). If that is so, you stumble here over a shortcoming of speedcrunch: Underflow and overflow limits are not balanced with respect to 1.0, so what produces an underflow in the range of small numbers will not create an overflow when mirrored to the range of large numbers.
Wolf Lammen ```
Reported by `ookami1@gmx.de` on 2007-06-25 19:29:44