Soldner's constant μ= 1.451369234883381... is connected to the logarithmic integral
, which is the subject of Cody Problem 46066.
Set Soldner's constant. The test suite puts up minor resistance against directly entering the number or using simple arithmetic. Of course, you can thwart the tests easily, but I encourage you to learn about the definition of μ.
Solution Stats
Problem Comments
3 Comments
Solution Comments
Show comments
Loading...
Problem Recent Solvers16
Suggested Problems
-
30012 Solvers
-
Project Euler: Problem 7, Nth prime
1748 Solvers
-
Back to basics 22 - Rotate a matrix
932 Solvers
-
533 Solvers
-
Natural numbers in string form
1849 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!
Tip: the Sodner's constant is the unique positive root of the Logarithmic integral function.
This problem needs a better description. For instance, it is not clear why arithmetic is banned, after all any function uses it and it is really easy to hide the constant's value within non conventional operations (the leading solution did exactly that). It would probably be best to just force the player to use some function or to suggest what kind of solution is expected.
Thanks for the suggestion, Rafael. I edited the description. I appreciate that James also submitted a solution demonstrating understanding of the definition of Soldner's constant.
exp() should be banned as well.