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
(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.