[From nobody Mon Aug 10 19:27:04 2026
Received: (at submit) by bugs.debian.org; 24 Nov 2015 15:06:25 +0000
X-Spam-Checker-Version: SpamAssassin 3.4.0-bugs.debian.org_2005_01_02
 (2014-02-07) on buxtehude.debian.org
X-Spam-Level: 
X-Spam-Status: No, score=-13.3 required=4.0 tests=BAYES_00,
 DKIM_ADSP_CUSTOM_MED,FOURLA,FREEMAIL_FROM,HAS_PACKAGE,HELO_MISC_IP,
 NML_ADSP_CUSTOM_MED, SPF_SOFTFAIL, XMAILER_REPORTBUG,
 X_DEBBUGS_CC autolearn=ham
 autolearn_force=no version=3.4.0-bugs.debian.org_2005_01_02
X-Spam-Bayes: score:0.0000 Tokens: new, 9; hammy, 150; neutral, 111; spammy,
 0. spammytokens: hammytokens:0.000-+--systemd, 0.000-+--H*M:reportbug,
 0.000-+--H*MI:reportbug, 0.000-+--H*x:reportbug, 0.000-+--H*UA:reportbug
Return-path: &lt;andreastacchiotti@gmail.com&gt;
Received: from utente15faedo.sns.it ([192.167.204.15] helo=[127.0.1.1])
 by buxtehude.debian.org with esmtp (Exim 4.84)
 (envelope-from &lt;andreastacchiotti@gmail.com&gt;) id 1a1FAn-0002pa-5Y
 for submit@bugs.debian.org; Tue, 24 Nov 2015 15:06:25 +0000
Content-Type: text/plain; charset=&quot;us-ascii&quot;
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
From: Andrea Stacchiotti &lt;andreastacchiotti@gmail.com&gt;
To: Debian Bug Tracking System &lt;submit@bugs.debian.org&gt;
Subject: gnome-calculator: Operations with complex numbers
Message-ID: &lt;144837757896.8710.2693697900864730991.reportbug@duelitri&gt;
X-Mailer: reportbug 6.6.5
Date: Tue, 24 Nov 2015 16:06:18 +0100
X-Debbugs-Cc: andreastacchiotti@gmail.com
Delivered-To: submit@bugs.debian.org

Package: gnome-calculator
Version: 3.18.2-1
Severity: normal

Dear maintainer,
operations with complex numbers have some surprising results in gnome-
calculator.

while e^(a*i*Pi) seems to give the correct result for every a in R, other
related operations don't work as well:

* Integer power: z^n, z in C, n in N, returns z even if it makes no sense,
while z*z, for example, works fine.
If n is not positive, strange things happen, depending on inputs.

Reproduce with i^2, i^(-1), i^(-2)

* Hyperbolic fuctions: sinh(ai), cosh(ai) and tanh(ai) always return 0 and 1,
instead of the proper value.
With some testing, they seem to return f(Re(z)) instead of f(z).

Consider telling the user those functions are unsupported for some arguments,
like the factorial does.



-- System Information:
Debian Release: stretch/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.2.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=it_IT.UTF-8, LC_CTYPE=it_IT.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages gnome-calculator depends on:
ii  dconf-gsettings-backend [gsettings-backend]  0.24.0-2
ii  libatk1.0-0                                  2.18.0-1
ii  libc6                                        2.19-22
ii  libcairo-gobject2                            1.14.4-1
ii  libcairo2                                    1.14.4-1
ii  libgdk-pixbuf2.0-0                           2.32.2-1
ii  libglib2.0-0                                 2.46.2-1
ii  libgmp10                                     2:6.1.0+dfsg-2
ii  libgtk-3-0                                   3.18.5-1
ii  libgtksourceview-3.0-1                       3.18.1-1
ii  libmpfr4                                     3.1.3-1
ii  libpango-1.0-0                               1.38.1-1
ii  libpangocairo-1.0-0                          1.38.1-1
ii  libxml2                                      2.9.2+zdfsg1-4

Versions of packages gnome-calculator recommends:
ii  gvfs  1.26.2-1
ii  yelp  3.16.1-1

gnome-calculator suggests no packages.

-- no debconf information
]