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
-
1777 Solvers
-
given 3 sides, find area of this triangle
819 Solvers
-
Magic is simple (for beginners)
11113 Solvers
-
535 Solvers
-
Replace pattern 0 1 0 and 1 0 1
158 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.