1页(9条)
Recursive functions not working - Recursive functions not working - 消息
WroteI'm not sure, but I think I might have found a bug:
I remember this used to work before. Am I doing something wrong?
You need to use line operator in function definition.
![2022-11-30 07_40_07-SMath Solver - [Worksheet1_].png](/zh-Hans-CN/files/Download/BAc5be/2022-11-30-07_40_07-SMath-Solver---[Worksheet1_].png)
Edit: A note about recursion. I do believe that Andrey limited the recursion depth that can take place. I think its somewhere around 50.
Feel free to join the SMath Studio Users Discord Channel: https://discord.gg/PayZpJW
1位用户喜欢此帖子
sergio 2022/11/30 11:16:00
Hi. Every CAS should have a recursion limit. The point would be to be able to control it, like in Mathematica: https://reference.wolfram.com/language/ref/$RecursionLimit.html
Best regards.
Alvaro.
Best regards.
Alvaro.
1位用户喜欢此帖子
Arie 2022/11/30 21:21:00
WroteWroteI'm not sure, but I think I might have found a bug:
I remember this used to work before. Am I doing something wrong?
You need to use line operator in function definition.
Edit: A note about recursion. I do believe that Andrey limited the recursion depth that can take place. I think its somewhere around 50.
Thanks!! How did I forget that. heh.
2位用户喜欢此帖子
Maths Sqrt(x) Heron DEMO.sm (11.66 KiB)已下载 1598 次。
WroteMaths Sqrt(x) Heron DEMO.sm (11.66 KiB)已下载 1598 次。
Either.

recursive_versus_iterative.sm (40.78 KiB)已下载 1668 次。
Alvaro.
2位用户喜欢此帖子
1页(9条)
- 有新帖
- 无新帖


![2022-11-30 07_47_11-SMath Solver - [Worksheet1_].png](/zh-Hans-CN/files/Download/kbM84b/2022-11-30-07_47_11-SMath-Solver---[Worksheet1_].png)