Simple recursive function

Simple recursive function - Messaggi

#1 Pubblicato: 20/10/2021 16:26:18
Patukott

Patukott

0 apprezzamenti in 6 post.

Gruppo: 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 Pubblicato: 20/10/2021 17:44:28
Jean Giraud

Jean Giraud

983 apprezzamenti in 6.866 post.

Gruppo: User

... like this ?

Unk.PNG
#3 Pubblicato: 20/10/2021 19:26:17
overlord

overlord

600 apprezzamenti in 1.381 post.

Gruppo: 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 utenti hanno apprezzato questo post
sergio 21/10/2021 10:19:00
#4 Pubblicato: 21/10/2021 05:16:05
Patukott

Patukott

0 apprezzamenti in 6 post.

Gruppo: User

Yes, Thank you! This was what I was looking for.
  • Nuovi post
  • Nessun nuovo post