| Summary: | Using the square root function in science mode leads to "Malformed expression" | ||
|---|---|---|---|
| Product: | [Applications] kcalc | Reporter: | prep |
| Component: | general | Assignee: | Gabriel Barrantes <gabriel.barrantes.dev> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | gabriel.barrantes.dev, nicolas.fella |
| Priority: | NOR | ||
| Version First Reported In: | 24.12.2 | ||
| Target Milestone: | --- | ||
| Platform: | Other | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
|
Description
prep
2025-03-03 11:39:02 UTC
(In reply to prep from comment #0) > SUMMARY > Using the square root function in science mode leads to "Malformed > expression" > STEPS TO REPRODUCE > 1. start kcalc and set science mode if it is not set; > 2. type any number, for example 54; > 3. press the sqrt button > OBSERVED RESULT > 54√( > EXPECTED RESULT > 7.34846922835 > 4. press the = button > OBSERVED RESULT > Malformed expression > EXPECTED RESULT > 7.34846922835 > SOFTWARE/OS VERSIONS > Linux/FC40/XFCE4 > KDE Frameworks Version: 5.116.0 > Qt Version: 4.8.7-76, 5.15.15-3, 6.8.2-3 > ADDITIONAL INFORMATION Now you need to enter the sqrt first, you will see in the display √(54 yielding the correct result below Previously, the root and other functions were calculated from the displayed content of the input field, why not return exactly this behavior. If there are no brackets, then it is obvious. Well, or add a check for switching? (In reply to prep from comment #2) > Previously, the root and other functions were calculated from the displayed > content of the input field, why not return exactly this behavior. If there > are no brackets, then it is obvious. Well, or add a check for switching? because that would be incompatible with the input display that allows the input to be edited. I need to do some changes so the blinking cursor is always visible but since now you can edit the input that old behaviour is just not compatible. |