How do I solve the differential equation numerically which is of the form : (z"/[1+(z'​)^2]^(3/2)​)+(0.19285​29/x)=2+(5​0.99203)*z ? I need to get the x and z values.

10 vues (au cours des 30 derniers jours)
Initial conditions are x=0 and z=0
  2 commentaires
Purush otham
Purush otham le 21 Mar 2018
Hi,
I am sorry that was an error. It is not 'y' it is 'z' . Now it has been corrected.

Connectez-vous pour commenter.

Réponse acceptée

James Tursa
James Tursa le 21 Mar 2018
Modifié(e) : James Tursa le 21 Mar 2018
Start with this:
(z"/[1+(z')^2]^(3/2))+(0.1928529/x)=2+(50.99203)*z
Solve for the highest order derivative z"
z" = [1+(z')^2]^(3/2) * (2 + (50.99203)*z - (0.1928529/x))
And then follow the examples in the ode45 doc for solving a 2nd order ODE. E.g., the derivative function
dzdx = @(x,z) [z(2); ((1+z(2)^2)^(3/2)) * (2 + (50.99203)*z(1) - (0.1928529/x))
The initial vector assuming the initial value z' = 0 (you didn't specify)
z0 = [0;0];
  11 commentaires
Torsten
Torsten le 23 Mar 2018
My guess is that initial conditions are not specified at x=0 to obtain the results from above.
But maybe you can include a link to the publication you are referering to.
Best wishes
Torsten.
Purush otham
Purush otham le 23 Mar 2018
Modifié(e) : Purush otham le 23 Mar 2018
Hi,
I am trying to replicate the results obtained in the paper.
Its called "an attempt to test...-by adam and bashforth"
okay so the link for the same is:
Thank you

Connectez-vous pour commenter.

Plus de réponses (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by