Bug 405163

Summary: Factorial Function Not Computing Proper Value
Product: [Applications] kalgebra Reporter: ethangtvle
Component: generalAssignee: Aleix Pol <aleixpol>
Status: REPORTED ---    
Severity: normal    
Priority: NOR    
Version First Reported In: 0.11   
Target Milestone: ---   
Platform: Kubuntu   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

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/