speedcrunch / SpeedCrunch

A fast, high-precision and powerful cross-platform desktop calculator.
http://speedcrunch.org
265 stars 38 forks source link

Exponentiation of a negative number returns invalid result #68

Closed heldercorreia closed 8 years ago

heldercorreia commented 8 years ago

Originally reported on Google Code with ID 6

Attempts to calculate the exponent of a negative number returns "NaN"
instead of the real result.  For example, the expression:

(5-7)^2

returns "NaN" instead of the expected "4".

This was observed on versions 0.7 beta under Windows XP and 0.6 beta under
Kubuntu.

Reported by snowgen on 2006-08-15 11:56:50

heldercorreia commented 8 years ago
Reproducable on 0.7 beta1 with SUSE 10.1.

Reported by ariya.hidayat on 2006-10-08 05:49:13

heldercorreia commented 8 years ago
Fixed in trunk.

Reported by ariya.hidayat on 2006-10-08 10:13:15

heldercorreia commented 8 years ago

Reported by ariya.hidayat on 2006-10-12 09:27:52

heldercorreia commented 8 years ago

Reported by helder.pereira.correia on 2007-05-15 13:33:57