[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#373622: marked as done (kcalc: incorrect sine calculation)



Your message dated Wed, 14 Jun 2006 14:21:54 -0400
with message-id <200606141421.56893.joshdeb@metzlers.org>
and subject line Bug#373622: kcalc: incorrect sine calculation
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--- Begin Message ---
Package: kcalc
Version: 4:3.5.3-1
Severity: important

Calculating sin(18108.8) produces 0.946649 while the actual answer is 
0.61307. Check the compilation options for things like -ffast-math as
trig calculations for large inputs are expensive and are usually not 
done correctly if the compiler is instructed to generate fastest code
possible.

-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'stable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.16-1-686-smp
Locale: LANG=en_CA.UTF-8, LC_CTYPE=en_CA.UTF-8 (charmap=UTF-8)

Versions of packages kcalc depends on:
ii  kdelibs4c2a                   4:3.5.3-1  core libraries and binaries for al
ii  libc6                         2.3.6-9    GNU C Library: Shared libraries
ii  libgcc1                       1:4.1.0-4  GCC support library
ii  libgmp3c2                     4.2.dfsg-1 Multiprecision arithmetic library
ii  libstdc++6                    4.1.0-4    The GNU Standard C++ Library v3

kcalc recommends no packages.

-- no debconf information


--- End Message ---
--- Begin Message ---
On Wednesday 14 June 2006 12:16, Filip Spacek wrote:
> Package: kcalc
> Version: 4:3.5.3-1
> Severity: important
>
> Calculating sin(18108.8) produces 0.946649 while the actual answer is
> 0.61307. Check the compilation options for things like -ffast-math as
> trig calculations for large inputs are expensive and are usually not
> done correctly if the compiler is instructed to generate fastest code
> possible.

0.946649 is the correct answer when the angle is in degrees, which is the 
default for kcalc.  You need to select Radians from the Angle combo box if 
you want to use angles in radians.  Doing so gives the correct answer, so 
I am closing the bug.

Josh

--- End Message ---

Reply to: