[Bugs] #2697 Calculate UNSP: Calculate should use an appropriate number of significant figures for trigonometric functions

Sugar Labs Bugs bugtracker-noreply at sugarlabs.org
Sun Dec 1 15:19:31 EST 2013


#2697: Calculate should use an appropriate number of significant figures for
trigonometric functions
----------------------------------------+-------------------------------
  Reporter:  greenfeld                  |            Owner:  rwh
      Type:  enhancement                |           Status:  new
  Priority:  Unspecified by Maintainer  |        Milestone:  Unspecified
 Component:  Calculate                  |          Version:  0.92.x
  Severity:  Minor                      |       Resolution:
  Keywords:                             |  Distribution/OS:  OLPC
Bug Status:  New                        |
----------------------------------------+-------------------------------
\
\
\
\
\
\

Comment (by lucyd):

 I propose the following idea for solving this issue.
 * Maintain a window of digits in the current computed value after decimal
 point
 * Check if any non-zero digit(significant figure) occurs in this window
 * If yes then go with the current format
 * If no then approximate the value to zero
 This approach is for values between 0 and 1. Similarly we can check in a
 window of digits before the decimal point for approximating the value to
 infinity. All other cases follow the existing format.
\
\
\

--
Ticket URL: <http://bugs.sugarlabs.org/ticket/2697#comment:2>
Sugar Labs <http://sugarlabs.org/>
Sugar Labs bug tracking system


More information about the Bugs mailing list