Simple recursive function

Simple recursive function - Messages

#1 Posted: 10/20/2021 4:26:18 PM
Patukott

Patukott

0 likes in 6 posts.

Group: User

Hello!

I am trying to write a simple recursive function, but cannot understand how to do it in Smath. It gives me an error saying the function is not defined. Picture of the problem is attached below.

Capture.PNG
#2 Posted: 10/20/2021 5:44:28 PM
Jean Giraud

Jean Giraud

983 likes in 6866 posts.

Group: User

... like this ?

Unk.PNG
#3 Posted: 10/20/2021 7:26:17 PM
overlord

overlord

552 likes in 1332 posts.

Group: Moderator

Wrote

I am trying to write a simple recursive function, but cannot understand how to do it in Smath.


Use line().
But remember, recursion has an intended limit.
After 50 steps, it won't calculate.

Regards

2021-10-20_23-29.png
1 users liked this post
sergio 10/21/2021 10:19:00 AM
#4 Posted: 10/21/2021 5:16:05 AM
Patukott

Patukott

0 likes in 6 posts.

Group: User

Yes, Thank you! This was what I was looking for.
  • New Posts New Posts
  • No New Posts No New Posts