1 Pages (9 items)
Recursive functions not working - Recursive functions not working - Messages
#1 Posted: 11/30/2022 8:53:58 AM
#2 Posted: 11/30/2022 9:40:43 AM
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.
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 users liked this post
sergio 11/30/2022 11:16:00 AM
#3 Posted: 11/30/2022 9:48:02 AM
#4 Posted: 11/30/2022 2:11:53 PM
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 users liked this post
Arie 11/30/2022 9:21:00 PM
#5 Posted: 11/30/2022 3:21:42 PM
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.
#6 Posted: 11/30/2022 6:10:45 PM
#8 Posted: 12/1/2022 2:42:17 PM
Maths Sqrt(x) Heron DEMO.sm (11 KiB) downloaded 28 time(s).
#9 Posted: 12/1/2022 10:09:52 PM
WroteMaths Sqrt(x) Heron DEMO.sm (11 KiB) downloaded 28 time(s).
Either.
recursive_versus_iterative.sm (40 KiB) downloaded 37 time(s).
Alvaro.
2 users liked this post
1 Pages (9 items)
-
New Posts
-
No New Posts