Cody Problem 42826 asked us to estimate the Euler-Mascheroni constant γ= 0.5772156649... by summing terms in an infinite series. This problem asks you to set the constant with an identity that uses functions available in MATLAB. For example, when I started programming, I read some code that set π not with an assignment such as pi = 3.14159 but with the identity pi = 4*atan(1).
Find an analogous identity and use it to set γ to 10 decimal places.
Solution Stats
Problem Comments
Solution Comments
Show comments
Loading...
Problem Recent Solvers17
Suggested Problems
-
7242 Solvers
-
Calculate the Levenshtein distance between two strings
1506 Solvers
-
1623 Solvers
-
Given a matrix, swap the 2nd & 3rd columns
1260 Solvers
-
calculate PI without using pi function
107 Solvers
More from this Author321
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!