#805986 gnome-calculator: Operations with complex numbers

Package:
gnome-calculator
Source:
gnome-calculator
Description:
GNOME desktop calculator
Submitter:
Andrea Stacchiotti
Date:
2026-08-10 18:27:02 UTC
Severity:
normal
#805986#5
Date:
2015-11-24 15:06:18 UTC
From:
To:
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.

#805986#10
Date:
2026-08-10 18:15:02 UTC
From:
To:
Hello,

as I have tested it on the newest version of gnome-calculator in Debian
forky/sid,
everything mentioned works fine, without any problems.

Probably it got fixed somewhere on the way.

If you still have problems, please open another bug report.

Thanks,
Dawid Kulas