[Bugs] #1865 NORM: OLPC-Calculate Activity – Unexpected error message displayed as follows “Error at ‘’: math domain error”

Sugar Labs Bugs bugtracker-noreply at sugarlabs.org
Thu Mar 25 06:18:55 EDT 2010


#1865: OLPC-Calculate Activity – Unexpected error message displayed as follows
“Error at ‘’: math domain error”
----------------------------+-----------------------------------------------
    Reporter:  Niranjala80  |          Owner:  rwh                        
        Type:  defect       |         Status:  new                        
    Priority:  Normal       |      Milestone:  Unspecified by Release Team
   Component:  Calculate    |        Version:  0.84.x                     
    Severity:  Minor        |       Keywords:  OS115                      
Distribution:  Unspecified  |   Status_field:  New                        
----------------------------+-----------------------------------------------
 '''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

-- 
Ticket URL: <https://bugs.sugarlabs.org/ticket/1865>
Sugar Labs <http://sugarlabs.org/>
Sugar Labs bug tracking system


More information about the Bugs mailing list