Error

 Previous Topic Next Topic
 S0lo #1 Posted : 30 November 2022 14:53:58(UTC) Rank: NewbieGroups: Registered Joined: 22/08/2018(UTC)Posts: 9 I'm not sure, but I think I might have found a bug: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
 Wanna join the discussion?! Login to your SMath Studio Forum forum accountor Register a new forum account.
 alyles #2 Posted : 30 November 2022 15:40:43(UTC) Rank: Advanced MemberGroups: Registered Joined: 23/03/2016(UTC)Posts: 257Was thanked: 86 time(s) in 54 post(s) Originally Posted by: S0lo I'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.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 1 user thanked alyles for this useful post. on 30/11/2022(UTC)
 alyles #3 Posted : 30 November 2022 15:48:02(UTC) Rank: Advanced MemberGroups: Registered Joined: 23/03/2016(UTC)Posts: 257Was thanked: 86 time(s) in 54 post(s) Example of recursion limit. Feel free to join the SMath Studio Users Discord Channel: https://discord.gg/PayZpJW
 Razonar #4 Posted : 30 November 2022 20:11:53(UTC) Rank: Advanced MemberGroups: Registered Joined: 28/08/2014(UTC)Posts: 1,095Was thanked: 630 time(s) in 397 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.htmlBest regards.Alvaro.Edited by user 30 November 2022 20:29:35(UTC)  | Reason: Not specified 1 user thanked Razonar for this useful post. on 01/12/2022(UTC)
 S0lo #5 Posted : 30 November 2022 21:21:42(UTC) Rank: NewbieGroups: Registered Joined: 22/08/2018(UTC)Posts: 9 Originally Posted by: alyles Originally Posted by: S0lo I'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.
 Jean Giraud #6 Posted : 01 December 2022 00:10:45(UTC) Rank: GuestGroups: Registered Joined: 04/07/2015(UTC)Posts: 6,406Was thanked: 928 time(s) in 756 post(s) The Mathematica 4.0 Fibonacci recursion has Smath companion algo style.
 Razonar #7 Posted : 01 December 2022 03:57:13(UTC) Rank: Advanced MemberGroups: Registered Joined: 28/08/2014(UTC)Posts: 1,095Was thanked: 630 time(s) in 397 post(s) Originally Posted by: Jean Giraud The Mathematica 4.0 Fibonacci recursion has Smath companion algo style. That is not an example of recursion, that is an iterative method. Try googling something like "iterative vs recursive Fibonacci".Alvaro. 2 users thanked Razonar for this useful post. on 01/12/2022(UTC),  on 01/12/2022(UTC)
 Jean Giraud #8 Posted : 01 December 2022 20:42:17(UTC) Rank: GuestGroups: Registered Joined: 04/07/2015(UTC)Posts: 6,406Was thanked: 928 time(s) in 756 post(s) Maths Sqrt(x) Heron DEMO.sm (12kb) downloaded 7 time(s).
 Razonar #9 Posted : 02 December 2022 04:09:52(UTC) Rank: Advanced MemberGroups: Registered Joined: 28/08/2014(UTC)Posts: 1,095Was thanked: 630 time(s) in 397 post(s) Originally Posted by: Jean Giraud Maths Sqrt(x) Heron DEMO.sm (12kb) downloaded 7 time(s).Either. recursive_versus_iterative.sm (41kb) downloaded 16 time(s).Alvaro. 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.