The expected output is Gi(x).
Note - The precision will vary for test cases as per the answers obtain from Wolfram Alpha.
Solution Stats
Problem Comments
3 Comments
Solution Comments
Show comments
Loading...
Problem Recent Solvers6
Suggested Problems
-
Count from 0 to N^M in base N.
240 Solvers
-
1343 Solvers
-
1446 Solvers
-
What gear ratio does the cyclist need?
157 Solvers
-
The sum of individual numbers...
83 Solvers
More from this Author44
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
This is my favorite of your problems so far, Dyuman. My inability to read the manual carefully led me to try several approaches, which is never bad, and I kludged two of them together in solution 8748010. It helped to finally remember *my own problem*, which--to avoid spoilers--I won't cite.
Thanks Chris!
I was actually waiting for you to realize it haha.
The original plan was to use the explicit formula to check if the problem could be solved or not, which looks easy on paper, however, was not so easy to implement numerically.
And then it clicked me!
To me it's interesting that if I had read the manual correctly, I wouldn't have thought about numerical evaluation of highly oscillating integrals, the method of stationary phase, the method of steepest descent, numerical solution of an ODE, hypergeometric functions, and more. There's a lesson in there about the value of mistakes.