Hello,
I've put some trace() "traps" in your code and it seems that there is some logic issue at least in the while(k<=1) level.
![2025-04-16 11_21_29-SMath Solver - [Software Jacobsen V1.sm_].png](/ru-RU/file/zndmE/2025-04-16-11_21_29-SMath-Solver---_Software-Jacobsen-V1_sm___png)
First issue is that k is never initialized.
Second issue is that the first if() inside that while() sends the algorithm in an endless loop, since k doesn't change up to that point.
![2025-04-16 11_21_49-SMath Solver - [Software Jacobsen V1.sm_].png](/ru-RU/file/uQ7wD/2025-04-16-11_21_49-SMath-Solver---_Software-Jacobsen-V1_sm___png)
There might be more problems but I'll start from those.
Отредактировано 16.04.2025 09:49:28
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects