Bug 405163 - Factorial Function Not Computing Proper Value
Summary: Factorial Function Not Computing Proper Value
Status: REPORTED
Alias: None
Product: kalgebra
Classification: Applications
Component: general (show other bugs)
Version: 0.11
Platform: Kubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: Aleix Pol
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-03-07 04:12 UTC by ethangtvle
Modified: 2019-03-24 11:59 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description ethangtvle 2019-03-07 04:12:13 UTC
SUMMARY
factorial(x) where x >= 33 does not compute proper value

STEPS TO REPRODUCE
1. Attempt to compute factorial of anything above 32

OBSERVED RESULT
factorial(33) returns the same value as factorial(32)
factorial(34) and greater return 0

EXPECTED RESULT
Not 0


SOFTWARE/OS VERSIONS
Windows: 
MacOS: 
Linux/KDE Plasma: 18.0.4 LTS
(available in About System)
KDE Plasma Version: 5.12.7
KDE Frameworks Version: 5.44.0
Qt Version: 5.9.5

ADDITIONAL INFORMATION
Comment 1 Christoph Feck 2019-03-24 11:59:50 UTC
This will require a big rewrite of libanalitza, because it currently uses 'double' datatype for numbers, instead of anything based on GMP (e.g. CLN).

https://www.ginac.de/CLN/