Problem 51745. Solve an ODE: equation A
Write a function to solve the following ordinary differential equation:
with
and
. The function should return the values of y at the specified values of x. One application of this equation involves the propagation of internal gravity waves in a fluid with variable density gradient.
Solution Stats
Problem Comments
-
2 Comments
David Hill
on 14 May 2021
Chris,
Can you loosen the tolerance to 1e-13. Cannot seem to get all my answers within tolerance.
ChrisR
on 14 May 2021
The tight tolerances are meant to encourage analytical solutions. A tag and the problem title provide clues. Nevertheless, I've loosened the tolerance on the tests that solution 5760543 didn't pass.
Solution Comments
Show commentsProblem Recent Solvers7
Suggested Problems
-
Replace NaNs with the number that appears to its left in the row.
2957 Solvers
-
Given an unsigned integer x, find the largest y by rearranging the bits in x
1791 Solvers
-
Back to basics 20 - singleton dimensions
268 Solvers
-
Sum of first n terms of a harmonic progression
411 Solvers
-
Create a vector whose elements depend on the previous element
644 Solvers
More from this Author269
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!