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](/en-US/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](/en-US/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.
Edited 4/16/2025 9:49:28 AM
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects