Solving two nonlinear equations
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
Franziska
el 7 de Mayo de 2019
Comentada: Franziska
el 21 de Mayo de 2019
I want to solve two non-linear equations of the variables
and
in terms of the third variable A:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/218402/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/218403/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/218404/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/218405/image.png)
where
and given. I need
and
as a function of A only (given α), such that I can plot the solution over a range of A between 0.5 and 2.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/218406/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/218407/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/218408/image.png)
I tried to solve the system symbolically, but did not find a solution.
Any Ideas?
0 comentarios
Respuesta aceptada
Torsten
el 7 de Mayo de 2019
Editada: Torsten
el 7 de Mayo de 2019
A = 0.5:0.01:2;
alpha = 0.5;
l00 = 1;
for i = 1:numel(A)
a = A(i);
fun = @(l0) 1 + alpha*l0^(alpha-1) - l0 - alpha*a*(2-l0)^(alpha-1);
L0(i) = fzero(fun,l00);
L1(i) = 2 - L0(i);
l00 = L0(i);
end
plot(A,L0,A,L1)
%res_L0 = 1-alpha*A.*L1.^(alpha-1)+alpha*L0.^(alpha-1)-L0;
%res_L1 = 1+alpha*A.*L1.^(alpha-1)-alpha*L0.^(alpha-1)-L1;
%plot(A,res_L0,A,res_L1)
2 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Symbolic Math Toolbox en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!