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
-
Get the area codes from a list of phone numbers
1072 Solvers
-
450 Solvers
-
The Hitchhiker's Guide to MATLAB
3408 Solvers
-
156 Solvers
-
Find and replaces spaces from a input string with *
172 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.