Opened 4 years ago

Closed 4 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:

  1. Power on OLPC
  2. Click on the calculate icon on home page.
  3. Click on the trigonometry Tab.
  4. Click on sin-1 option.
  5. Type “45”.
  6. Click on Enter.
  7. 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 4 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.

Note: See TracTickets for help on using tickets.