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

Notification

Icon
Error

Options
Go to last post Go to first unread
Online Jean Giraud  
#1 Posted : 12 June 2017 18:04:43(UTC)
Jean Giraud


Rank: Advanced Member

Groups: Registered
Joined: 04/07/2015(UTC)
Posts: 1,665
Canada

Was thanked: 456 time(s) in 349 post(s)
Can't understand the error message.
What's the mystic behind Smath Gamma(x) ?
Code looks inadequate for user.

Jean


Maths Gamma(x) Unsolvable.sm (15kb) downloaded 7 time(s).
Offline Davide Carpi  
#2 Posted : 12 June 2017 19:24:33(UTC)
Davide Carpi


Rank: Advanced Member

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

Was thanked: 857 time(s) in 569 post(s)
Hello Jean,

there's no mystic, Gamma() in SMath Studio is an approximated function, defined for not-null positive values. In your X(4) you have to initialize u[1] with a small value to not hurt the first iteration in the loop.

2017-06-12 18_21_29-SMath Studio - [Maths%20Gamma(x)%20Unsolvable.sm_].png

Edited by user 15 June 2017 20:09:17(UTC)  | Reason: marked as SOLVED (not a bug)

Best regards,

Davide

---
If you like my plugins please consider making a donation to SMath Studio
Online Jean Giraud  
#3 Posted : 12 June 2017 19:47:03(UTC)
Jean Giraud


Rank: Advanced Member

Groups: Registered
Joined: 04/07/2015(UTC)
Posts: 1,665
Canada

Was thanked: 456 time(s) in 349 post(s)
Thanks Davide, solves well now !
Any way to improve the approximation ?

Cheers ... Jean
Offline Davide Carpi  
#4 Posted : 12 June 2017 20:54:45(UTC)
Davide Carpi


Rank: Advanced Member

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

Was thanked: 857 time(s) in 569 post(s)
Originally Posted by: Jean Giraud Go to Quoted Post
Any way to improve the approximation ?


Yep, by changing the algorithm Biggrin

I found this interesting (just a fast search over big G).



Best regards,

Davide

---
If you like my plugins please consider making a donation to SMath Studio
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.