Empty sym: 0-by-1
4 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
clc;
clear;
syms x y z
a=-53.774+70+((30*(2*(37.839-x)-y))/((2*z-x)-y));
b=-54.827+70+((30*(2*(38.886-x)-y))/((2*z-x)-y));
c=-55.879+70+((30*(2*(39.932-x)-y))/((2*z-x)-y));
denklem=solve(a,b,c);
denklem.x
0 comentarios
Respuestas (1)
Walter Roberson
el 9 de Sept. de 2020
Your equations are inconsistent. There is no solution.
>> subs(c,solve([a,b],[x,y]))
ans =
-1/174500 == 0
Your third equation is not consistent with the first two.
1 comentario
Walter Roberson
el 9 de Sept. de 2020
The problem is in floating point round off.
syms x y z
T = sym(19501769)/sym(349000)
a=-53.774+70+((30*(2*(37.839-x)-y))/((2*z-x)-y));
b=-54.827+70+((30*(2*(38.886-x)-y))/((2*z-x)-y));
c=-T+70+((30*(2*(39.932-x)-y))/((2*z-x)-y));
subs(c,solve([a,b],[x,y]))
The result will be 0.
If you solve([a,b,c]) then you will get a numeric x and y, and z would be 0. This is not the full story. What the above tells you is that with that set of equations, you only have two independent variables, and the third equation will be satisfied if you know the values for any two of the variables.
Ver también
Categorías
Más información sobre Number Theory en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!