Can't Solve Gamma(x)

Can't Solve Gamma(x) - Messages

#1 Posted: 6/12/2017 12:04:43 PM
Jean Giraud

Jean Giraud

983 likes in 6866 posts.

Group: User

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 (14 KiB) downloaded 36 time(s).
#2 Posted: 6/12/2017 1:24:33 PM
Davide Carpi

Davide Carpi

1416 likes in 2873 posts.

Group: Moderator

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
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
#3 Posted: 6/12/2017 1:47:03 PM
Jean Giraud

Jean Giraud

983 likes in 6866 posts.

Group: User

Thanks Davide, solves well now !
Any way to improve the approximation ?

Cheers ... Jean
#4 Posted: 6/12/2017 2:54:45 PM
Davide Carpi

Davide Carpi

1416 likes in 2873 posts.

Group: Moderator

Wrote

Any way to improve the approximation ?



Yep, by changing the algorithm

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



If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
  • New Posts New Posts
  • No New Posts No New Posts