[Bugs] #4936 Calculate NORM: Sine and Cosine producing wrong outputs

Sugar Labs Bugs bugtracker-noreply at sugarlabs.org
Tue Mar 29 02:58:41 EDT 2016


#4936: Sine and Cosine producing wrong outputs
------------------------+-------------------------------
  Reporter:  Abrahm     |            Owner:
      Type:  defect     |           Status:  new
  Priority:  Normal     |        Milestone:  Unspecified
 Component:  Calculate  |          Version:  Unspecified
  Severity:  Minor      |       Resolution:
  Keywords:             |  Distribution/OS:
Bug Status:  New        |
------------------------+-------------------------------
Changes (by quozl):

 * priority:  Unspecified by Maintainer => Normal
 * distribution:  Ubuntu =>
 * severity:  Trivial => Minor
 * status_field:  Unconfirmed => New


Comment:

 Confirmed.  Root cause is sign of result not displayed when result is
 long.  Proof:

 {{{
 sin(181) = 0.0174524...                    <-- correct
 sin(179) = 0.0174524...                    <-- should be negative
 sin(181)+sin(179) = nearly zero            <-- correct
 sin(181)-negate(sin(179)) = nearly zero    <-- correct
 }}}

 Perhaps solved by pending pull requests:

  * https://github.com/godiard/sugarlabs-calculate/pull/28
  * https://github.com/godiard/sugarlabs-calculate/pull/30

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


More information about the Bugs mailing list