Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
Offline S0lo  
#1 Posted : 30 November 2022 14:53:58(UTC)
S0lo


Rank: Member

Groups: Registered
Joined: 22/08/2018(UTC)
Posts: 11

I'm not sure, but I think I might have found a bug:

Noname.jpg

I remember this used to work before. Am I doing something wrong?

Edited by user 01 December 2022 11:01:35(UTC)  | Reason: Not specified

Offline alyles  
#2 Posted : 30 November 2022 15:40:43(UTC)
alyles


Rank: Advanced Member

Groups: Registered
Joined: 23/03/2016(UTC)
Posts: 274
United States

Was thanked: 91 time(s) in 57 post(s)
Originally Posted by: S0lo Go to Quoted Post
I'm not sure, but I think I might have found a bug:

error

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

Edit: A note about recursion. I do believe that Andrey limited the recursion depth that can take place. I think its somewhere around 50.

Edited by user 30 November 2022 16:20:30(UTC)  | Reason: Not specified

Feel free to join the SMath Studio Users Discord Channel: https://discord.gg/PayZpJW
thanks 1 user thanked alyles for this useful post.
on 30/11/2022(UTC)
Offline alyles  
#3 Posted : 30 November 2022 15:48:02(UTC)
alyles


Rank: Advanced Member

Groups: Registered
Joined: 23/03/2016(UTC)
Posts: 274
United States

Was thanked: 91 time(s) in 57 post(s)
Example of recursion limit.

2022-11-30 07_47_11-SMath Solver - [Worksheet1_].png
Feel free to join the SMath Studio Users Discord Channel: https://discord.gg/PayZpJW
Offline Razonar  
#4 Posted : 30 November 2022 20:11:53(UTC)
Razonar


Rank: Advanced Member

Groups: Registered
Joined: 28/08/2014(UTC)
Posts: 1,318
Uruguay

Was thanked: 796 time(s) in 504 post(s)
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.

Edited by user 30 November 2022 20:29:35(UTC)  | Reason: Not specified

thanks 1 user thanked Razonar for this useful post.
on 01/12/2022(UTC)
Offline S0lo  
#5 Posted : 30 November 2022 21:21:42(UTC)
S0lo


Rank: Member

Groups: Registered
Joined: 22/08/2018(UTC)
Posts: 11

Originally Posted by: alyles Go to Quoted Post
Originally Posted by: S0lo Go to Quoted Post
I'm not sure, but I think I might have found a bug:

error

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

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.

Offline Jean Giraud  
#6 Posted : 01 December 2022 00:10:45(UTC)
Jean Giraud

Rank: Guest

Groups: Registered
Joined: 04/07/2015(UTC)
Posts: 6,792
Canada

Was thanked: 974 time(s) in 802 post(s)
The Mathematica 4.0 Fibonacci recursion has Smath companion algo style.

Recursive Fibonacci.PNG
Offline Razonar  
#7 Posted : 01 December 2022 03:57:13(UTC)
Razonar


Rank: Advanced Member

Groups: Registered
Joined: 28/08/2014(UTC)
Posts: 1,318
Uruguay

Was thanked: 796 time(s) in 504 post(s)
Originally Posted by: Jean Giraud Go to Quoted Post
The Mathematica 4.0 Fibonacci recursion has Smath companion algo style.

Recursive Fibonacci.PNG


That is not an example of recursion, that is an iterative method. Try googling something like "iterative vs recursive Fibonacci".

Alvaro.
thanks 2 users thanked Razonar for this useful post.
on 01/12/2022(UTC),  on 01/12/2022(UTC)
Offline Jean Giraud  
#8 Posted : 01 December 2022 20:42:17(UTC)
Jean Giraud

Rank: Guest

Groups: Registered
Joined: 04/07/2015(UTC)
Posts: 6,792
Canada

Was thanked: 974 time(s) in 802 post(s)
Maths Sqrt(x) Heron DEMO.sm (12kb) downloaded 7 time(s).
Offline Razonar  
#9 Posted : 02 December 2022 04:09:52(UTC)
Razonar


Rank: Advanced Member

Groups: Registered
Joined: 28/08/2014(UTC)
Posts: 1,318
Uruguay

Was thanked: 796 time(s) in 504 post(s)
Originally Posted by: Jean Giraud Go to Quoted Post
Maths Sqrt(x) Heron DEMO.sm (12kb) downloaded 7 time(s).


Either.

recursive_versus_iterative.gif

recursive_versus_iterative.sm (41kb) downloaded 20 time(s).

Alvaro.
thanks 2 users thanked Razonar for this useful post.
on 02/12/2022(UTC),  on 02/12/2022(UTC)
Users browsing this topic
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.