Welcome Guest! To enable all features please Login. New Registrations are disabled.

Error

 Previous Topic Next Topic
 overlord #1 Posted : 03 December 2022 21:26:00(UTC) Rank: Advanced MemberGroups: Registered Joined: 23/07/2013(UTC)Posts: 1,128Was thanked: 508 time(s) in 338 post(s) Originally Posted by: Jean Giraud Augmented version & re-tutored.Cheers ... Jean.This statement is wrong in your document.Iteration is not an attribute of recursion, neither directly or implicitly.It doesn't guess next result recursively, recursion means calling function by itself.Recursion is a function which calls itself.Iteration is simply repetition of a code block.Here is sample for iteration and recursion.Usually recursion takes more time to compute. fibonacci.sm (8kb) downloaded 40 time(s). 2 users thanked overlord for this useful post. on 03/12/2022(UTC),  on 06/12/2022(UTC)
 Wanna join the discussion?! Login to your SMath Studio Forum forum account. New Registrations are disabled.
 overlord #2 Posted : 04 December 2022 10:43:39(UTC) Rank: Advanced MemberGroups: Registered Joined: 23/07/2013(UTC)Posts: 1,128Was thanked: 508 time(s) in 338 post(s) Fibonacci sequence starts with 0. Your sample is wrong.0,1,1,2,3,5,8,13,21,34,55
 overlord #3 Posted : 04 December 2022 17:05:03(UTC) Rank: Advanced MemberGroups: Registered Joined: 23/07/2013(UTC)Posts: 1,128Was thanked: 508 time(s) in 338 post(s) I won't update my code, because it is the correct one.Fibonacci sequence start with 0 and 1.If web calculators doesn't include 0, it is their problem.https://en.wikipedia.org/wiki/Fibonacci_number
 overlord #4 Posted : 04 December 2022 20:13:31(UTC) Rank: Advanced MemberGroups: Registered Joined: 23/07/2013(UTC)Posts: 1,128Was thanked: 508 time(s) in 338 post(s) Fibonacci sequence starts with 0-1, end of debate.I will try to point out and correct a miscalculation if I could.I don't care if it is online calculator, mathcad, matlab, smath, etc.I will always detract when a calculation is wrong and justified.And I will mock and ridicule it if that mistake defended without reason.It is time for you to learn when to stop.Don't post your ridicule ideas and calculations.And don't humiliate yourself anymore.
 overlord #5 Posted : 05 December 2022 00:19:32(UTC) Rank: Advanced MemberGroups: Registered Joined: 23/07/2013(UTC)Posts: 1,128Was thanked: 508 time(s) in 338 post(s) Originally Posted by: Jean Giraud Good idea you detract yourself from your wrong code.Fibalgo(26)=121393You are totally incapable calculating even a very simple thing, AGAIN.My code is correct, yours is wrong. And this didn't surprised me one bit.
 overlord #6 Posted : 05 December 2022 03:49:55(UTC) Rank: Advanced MemberGroups: Registered Joined: 23/07/2013(UTC)Posts: 1,128Was thanked: 508 time(s) in 338 post(s) You have mistaken index numbers, since smath vector index start with 1.Near all other calculators starts index with 0.fib(0) is 0 for them, fib(1) is 0 for smath.So yeah, fib(26) is 75025 in SMath.
 Razonar #7 Posted : 05 December 2022 20:04:27(UTC) Rank: Advanced MemberGroups: Registered Joined: 28/08/2014(UTC)Posts: 1,356Was thanked: 815 time(s) in 516 post(s) Originally Posted by: Jean Giraud Maths Fibonacci VERDICT Copy.sm (24kb) downloaded 27 time(s).What is your concept of "hyperfast" and "command line"? Did you do any kind of testing before making such strong statements? Please do some basic research before posting solutions that are not. f.sm (5kb) downloaded 26 time(s).Alvaro. 2 users thanked Razonar for this useful post. on 06/12/2022(UTC),  on 06/12/2022(UTC)
 Razonar #8 Posted : 06 December 2022 00:17:23(UTC) Rank: Advanced MemberGroups: Registered Joined: 28/08/2014(UTC)Posts: 1,356Was thanked: 815 time(s) in 516 post(s) Originally Posted by: Jean Giraud 1. Command line is pretty universal. Remember Mathsot times.Sure it is. This is what SMath developers understand about "command line", which matches the universally accepted concept for that expression ( from https://en.smath.com/view/SMathStudio/faq )So could you show where the "command line" is in your example?Originally Posted by: Jean Giraud 2. Computing 1476 Fibonacci in < 1 sis hyperfast to me versus Julia set 2 hrs !!!So, you test your fib against your Julia set ... Do you try to test your fib versus another function that returns Fibonacci numbers? f.sm (9kb) downloaded 23 time(s).Alvaro.
 Davide Carpi #9 Posted : 06 December 2022 16:15:51(UTC) Rank: Advanced MemberGroups: Registered, Advanced MemberJoined: 13/01/2012(UTC)Posts: 2,647Location: ItalyWas thanked: 1329 time(s) in 875 post(s) mod: I've merged the threads, if you have different methods you can list or link them in the first post with the edit button. Unless there is a crystal clear difference in methods and a meaningful title, having multiple threads about the same thing makes really hard to navigate and search topics in the forum.I agree you should give proper names to things, recursion and iterations are two very different things and they have an estabilished meaning (like "command line", I'm sure this was already discussed in some other thread previously)To quote myself, this is another simple way to create a Fibonacci sequence in SMath Studio.Originally Posted by: Davide Carpi Yes you can, but you have to work in base 1 indices (first vector element index is 1, 18th elemnt index is 18).https://it.smath.com/cloud/worksheet/ZHppgvSGEdited by user 06 December 2022 16:19:56(UTC)  | Reason: Not specified If you like my plugins consider to support SMath Studio buying a plan; to offer me a coffee: paypal.me/dcprojects 2 users thanked Davide Carpi for this useful post. on 06/12/2022(UTC),  on 06/12/2022(UTC)
 Jean Giraud #10 Posted : 14 December 2022 22:28:37(UTC) Rank: GuestGroups: Registered Joined: 04/07/2015(UTC)Posts: 6,866Was thanked: 981 time(s) in 809 post(s) That's all what you need, more is offered. Maths Fibonacci VERDICT Short.sm (10kb) downloaded 25 time(s). Maths Fibonacci VERDICT Copy.sm (428kb) downloaded 24 time(s).
 alyles #11 Posted : 14 December 2022 23:59:44(UTC) Rank: Advanced MemberGroups: Registered Joined: 23/03/2016(UTC)Posts: 276Was thanked: 91 time(s) in 57 post(s) The verdict is in. Feel free to join the SMath Studio Users Discord Channel: https://discord.gg/PayZpJW
 Jean Giraud #12 Posted : 16 December 2022 20:39:58(UTC) Rank: GuestGroups: Registered Joined: 04/07/2015(UTC)Posts: 6,866Was thanked: 981 time(s) in 809 post(s)
 Users browsing this topic
 Similar Topics Fibonacci VERDICT (Samples) by Jean Giraud 14/12/2022 22:28:37(UTC) Fibonacci Plus (Samples) by Jean Giraud 03/12/2022 18:33:49(UTC) fibonacci sequence (Questions) by plchild 23/01/2020 22:54:00(UTC)
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.