https://bugs.kde.org/show_bug.cgi?id=521889
Bug ID: 521889
Summary: spaces being removed from output cause wrong answers
(ex: factor(42) )
Classification: Applications
Product: cantor
Version First 26.04.2
Reported In:
Platform: Other
OS: Linux
Status: REPORTED
Severity: normal
Priority: NOR
Component: maxima-backend
Assignee: [email protected]
Reporter: [email protected]
Target Milestone: ---
***
If you're not sure this is actually a bug or valid feature request, instead
post about it at https://discuss.kde.org
If you're reporting a crash, attach a backtrace with debug symbols; see
https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
Please remove this comment after reading and before submitting - thanks!
***
DESCRIPTION
STEPS TO REPRODUCE
1. calculate factor(any number)
2.
3.
OBSERVED RESULT
For example on Maxima, factor(42) gives:
(%i1) factor(42);
(%o1) 2*3*7
However on Cantor it shows
factor(42)
237
EXPECTED RESULT
2 3 7
SOFTWARE/OS VERSIONS
Operating System: Arch Linux
KDE Plasma Version: 6.7.0
KDE Frameworks Version: 6.27.0
Qt Version: 6.11.1
Kernel Version: 7.0.12-arch1-1 (64-bit)
Graphics Platform: Wayland
ADDITIONAL INFORMATION
The bug is likely caused by this:
Maxima outputs the list of factors with spaces, as in:
(%i1) factor(42);
(%o1) 2 3 7
and even on a GUI (like wxmaxima) the answer is "2 3 7"
but Cantor makes the answer into latex, and so, the intraspaces are removed,
and the output becomes "237" which is wrong.
Strangely enough, if I "copy and paste" the output from cantor, I get:
$$2\*3\*7$$
so Cantor knows it's a product, and it knows should render the operation, but
"on the screen" it looks as 237 instead of 2 3 7.
Consider for example "factor(439)" it gives as answer: 31113 which is
definitely wrong.
--
You are receiving this mail because:
You are watching all bug changes.