Opened 7 years ago
Closed 6 years ago
#1865 closed defect (notabug)
OLPC-Calculate Activity – Unexpected error message displayed as follows “Error at ‘’: math domain error”
Reported by: | Niranjala80 | Owned by: | rwh |
---|---|---|---|
Priority: | Normal | Milestone: | Unspecified |
Component: | Calculate | Version: | 0.84.x |
Severity: | Minor | Keywords: | OS115 |
Cc: | Distribution/OS: | Unspecified | |
Bug Status: | New |
Description
Description:
When Type asin(45) and enter, It gives,
asin(45)
Error at 1: math domain error
This should give the answer as, 1.17522136 in radians & 67.3352241 in degrees.
Similarly,
When Type acos(45) & enter It gives,
acos(45)
Error at 1: math domain error
This should give the answer as, 1.90359441 in radians & 109.067925 in degrees.
Tested enabling both deg & rad the result was same.
Steps to recreate the defect:
- Power on OLPC
- Click on the calculate icon on home page.
- Click on the trigonometry Tab.
- Click on sin-1 option.
- Type “45”.
- Click on Enter.
- Verify the message displayed on the right side result text box
Actual Result:
Displayed error message as “Error at 1: math domain error” when tries to get the answer for sin-1 and cos -1.
Expected Result:
For asin(45):
1.17522136 In radians
67.3352241 In degrees
For acos(45:)
1.90359441 In radians
67.3352241 In degrees
Tested Environment
OS: Sugar and GNOME (Dual boot)
Machine Type: XO 1.5
Build: OS 115
Firmware: Q3A35
Change History (1)
comment:1 Changed 6 years ago by rwh
- Resolution set to notabug
- Status changed from new to closed
I do not see the problem here: the arc sine function is only defined for x between -1 and 1, so the math domain error is correct.