#5734 HIGH Update.: parse and calculation errors, exponents, parens, and =

Zarro Boogs per Child bugtracker at laptop.org
Fri Dec 28 16:40:49 EST 2007


#5734: parse and calculation errors, exponents, parens, and =
----------------------------------+-----------------------------------------
  Reporter:  dialectric           |       Owner:  rwh     
      Type:  defect               |      Status:  new     
  Priority:  high                 |   Milestone:  Update.1
 Component:  calculator-activity  |     Version:          
Resolution:                       |    Keywords:          
  Verified:  0                    |    Blocking:          
 Blockedby:                       |  
----------------------------------+-----------------------------------------

Comment(by rwh):

 Thanks for taking the time to report this!

 The '=' operator is in general used to compare. An answer is generated
 when enter is pressed. However, the error-reporting in this case ''was''
 really poor. I improved this by mentioning that a number or variable is
 expected. sin(pi)=0 returns False because by default the sine function
 interprets the argument in degrees; use of radians can be toggled in the
 'Format' toolbar. sin(pi)=0 will, unfortunately, still return False due to
 finite precision.

 There was indeed a parenthesis bug when evaluating things like 0(5); I
 fixed this to return an error.

 I cannot reproduce the problem with 2^2=4 returning False. In fact I can't
 reproduce any of the exponent bugs, so it might be build-related. Which
 build are you on?

 Jim, putting this is update.1 will have to include some new error
 messages, because I don't have a general 'Parse error' message available.
 Do you still want this in?

-- 
Ticket URL: <http://dev.laptop.org/ticket/5734#comment:5>
One Laptop Per Child <http://dev.laptop.org>
OLPC bug tracking system



More information about the Bugs mailing list