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
-
What is the distance from point P(x,y) to the line Ax + By + C = 0?
554 Solvers
-
Permute diagonal and antidiagonal
500 Solvers
-
5052 Solvers
-
106 Solvers
-
Make a rainbow matrix (follow-up to checkerboard matrix)
86 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.