second order differential systems of a non linear ODE
Afficher commentaires plus anciens
Considering theth differential system equations to be solved are:
f''(t) = 3*f(t)*g(t) + 5 g''(t) = 4*g(t)*f(t) + 7 with initial conditions: f(0) = 1.5, g'(0) = 0 and boundary constraints tf = 1: g(1) = 3, f'(1) =q* f(1)
With q is natural number
how we can plot the solution satysfying the boundary conditions
8 commentaires
Jan
le 18 Juin 2021
This sound like a job fpr bvp4c .
Lewis Fer
le 18 Juin 2021
Jan
le 19 Juin 2021
Start with reading the corresponding documentation:
doc bvp4c
Then modify the exmples given there to your problem. If you have a specific problem with this, post the details here.
The information, that q is a natural number does not allow to implement this. The readers of your question cannot guess, if you want to run the code for a certain number of inputs, if you should find a specific value of q.
Lewis Fer
le 19 Juin 2021
Jan
le 19 Juin 2021
What is your problem with solving the problem for different q? There is a huge number of different natural number, so what is the actual problem you want to solve?
Lewis Fer
le 19 Juin 2021
Lewis Fer
le 19 Juin 2021
Réponses (1)
Sulaymon Eshkabilov
le 19 Juin 2021
Small typo err in your code:
xmesh = linspace(0,1,10);
sol = bvpinit(xmesh, @iguess);
sol = bvp5c(@odefcn,@bcfcn,sol,bvpset('RelTol ' ,1e-13 ,'AbsTol ',1e-13,'Nmax ',6000)); % ERR: No space after: 'RelTol', 'AbsTol', 'Nmax'
1 commentaire
Lewis Fer
le 19 Juin 2021
Catégories
En savoir plus sur Ordinary Differential Equations dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!