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

Notification

Icon
Error

Options
Go to last post Go to first unread
Offline overlord  
#1 Posted : 03 December 2022 21:26:00(UTC)
overlord


Rank: Advanced Member

Groups: Registered
Joined: 23/07/2013(UTC)
Posts: 1,168
Turkey

Was thanked: 530 time(s) in 356 post(s)
Originally Posted by: Jean Giraud Go to Quoted Post
Augmented version & re-tutored.
Cheers ... Jean.

2022-12-03_20-42.png

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 42 time(s).

2022-12-03_21-07.png
thanks 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.

Offline overlord  
#2 Posted : 04 December 2022 10:43:39(UTC)
overlord


Rank: Advanced Member

Groups: Registered
Joined: 23/07/2013(UTC)
Posts: 1,168
Turkey

Was thanked: 530 time(s) in 356 post(s)
Fibonacci sequence starts with 0. Your sample is wrong.

0,1,1,2,3,5,8,13,21,34,55
Offline overlord  
#3 Posted : 04 December 2022 17:05:03(UTC)
overlord


Rank: Advanced Member

Groups: Registered
Joined: 23/07/2013(UTC)
Posts: 1,168
Turkey

Was thanked: 530 time(s) in 356 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
Offline overlord  
#4 Posted : 04 December 2022 20:13:31(UTC)
overlord


Rank: Advanced Member

Groups: Registered
Joined: 23/07/2013(UTC)
Posts: 1,168
Turkey

Was thanked: 530 time(s) in 356 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.

2022-12-04_19-59.png

2022-12-04_19-59_1.png

2022-12-04_20-00.png

2022-12-04_20-01.png

2022-12-04_20-00_1.png
Offline overlord  
#5 Posted : 05 December 2022 00:19:32(UTC)
overlord


Rank: Advanced Member

Groups: Registered
Joined: 23/07/2013(UTC)
Posts: 1,168
Turkey

Was thanked: 530 time(s) in 356 post(s)
Originally Posted by: Jean Giraud Go to Quoted Post
Good idea you detract yourself from your wrong code.
Fibalgo(26)=121393

You 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.

2022-12-05_00-17.png
Offline overlord  
#6 Posted : 05 December 2022 03:49:55(UTC)
overlord


Rank: Advanced Member

Groups: Registered
Joined: 23/07/2013(UTC)
Posts: 1,168
Turkey

Was thanked: 530 time(s) in 356 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.
Offline Razonar  
#7 Posted : 05 December 2022 20:04:27(UTC)
Razonar


Rank: Advanced Member

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

Was thanked: 900 time(s) in 574 post(s)
Originally Posted by: Jean Giraud Go to Quoted Post
FibonacciVerdict.PNG

Maths Fibonacci VERDICT Copy.sm (24kb) downloaded 28 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.png

f.sm (5kb) downloaded 27 time(s).

Alvaro.
thanks 2 users thanked Razonar for this useful post.
on 06/12/2022(UTC),  on 06/12/2022(UTC)
Offline Razonar  
#8 Posted : 06 December 2022 00:17:23(UTC)
Razonar


Rank: Advanced Member

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

Was thanked: 900 time(s) in 574 post(s)
Originally Posted by: Jean Giraud Go to Quoted Post

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 )

cl.png

So could you show where the "command line" is in your example?

Originally Posted by: Jean Giraud Go to Quoted Post

2. Computing 1476 Fibonacci in < 1 s
is 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 24 time(s).

f.png

Alvaro.
Offline Davide Carpi  
#9 Posted : 06 December 2022 16:15:51(UTC)
Davide Carpi


Rank: Advanced Member

Groups: Registered, Advanced Member
Joined: 13/01/2012(UTC)
Posts: 2,700
Man
Italy
Location: Italy

Was thanked: 1372 time(s) in 898 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 Go to Quoted Post
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/ZHppgvSG

2020-01-24 09_30_19-Fibonacci - SMath Studio nel Cloud.png

Edited 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
thanks 2 users thanked Davide Carpi for this useful post.
on 06/12/2022(UTC),  on 06/12/2022(UTC)
Offline Jean Giraud  
#10 Posted : 14 December 2022 22:28:37(UTC)
Jean Giraud

Rank: Guest

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

Was thanked: 983 time(s) in 811 post(s)
That's all what you need, more is offered.

fib.PNG

Maths Fibonacci VERDICT Short.sm (10kb) downloaded 26 time(s).

Maths Fibonacci VERDICT Copy.sm (428kb) downloaded 25 time(s).
Offline alyles  
#11 Posted : 14 December 2022 23:59:44(UTC)
alyles


Rank: Advanced Member

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

Was thanked: 92 time(s) in 58 post(s)
The verdict is in.
Feel free to join the SMath Studio Users Discord Channel: https://discord.gg/PayZpJW
Offline Jean Giraud  
#12 Posted : 16 December 2022 20:39:58(UTC)
Jean Giraud

Rank: Guest

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

Was thanked: 983 time(s) in 811 post(s)
Binet [69,70,71,72,73].PNG
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.