I need final equation...

I used this equation..
[x,z]=solve('a=(1/1460)*(sqrt((x-d)^2+(z-g)^2)-sqrt((x-c)^2+(z-f)^2))', 'b=(1/1460)*(sqrt((x-e)^2+(z-f)^2)-sqrt((x-c)^2+(z-f)^2))')
espeacially Solve equation.
But.... The problem is... 'Output truncated. Text exceeds maximum line length of 25,000 characters for Command Window display.'
a to f function are 'Random variable', so I need final equation....
How to get the final equation?

 Réponse acceptée

Walter Roberson
Walter Roberson le 2 Juin 2011

0 votes

There are two solutions:
{
x = (1460*(-9685390482496000000*(-(1/2131600)*f^2 + (1/1065800)*g*f - (1/2131600)*g^2 + ((1/1460)*c - (1/1460)*d + a)*(-(1/1460)*c + (1/1460)*d + a))*((1/1460)*c - (1/1460)*e + b)*b^2*(-g + f)^2*(-(1/1460)*c + (1/1460)*e + b)*(b^2 - 2*a*b - (1/2131600)*f^2 + (1/1065800)*g*f - (1/2131600)*g^2 + (-(1/1460)*d + (1/1460)*e + a)*((1/1460)*d - (1/1460)*e + a)))^(1/2) + (4543718560000*a*d - 4543718560000*a*c)*b^3 + (2131600*c^3 - 2131600*d*c^2 + (9087437120000*a^2 - 2131600*d^2)*c + (-4263200*g*f - 4543718560000*a^2 + 2131600*g^2 + 2131600*f^2)*e - 4263200*f*g*d + 2131600*d*g^2 - 4543718560000*d*a^2 + 2131600*d^3 + 2131600*d*f^2)*b^2 + (-4263200*a*c^3 + (2131600*a*e + 2131600*a*d)*c^2 + (2131600*a*e^2 - 4543718560000*a^3 + (2131600*d^2 + 2131600*f^2 - 4263200*g*f + 2131600*g^2)*a)*c - 2131600*d*a*e^2 + (4543718560000*a^3 + (-2131600*d^2 - 2131600*g^2 - 2131600*f^2 + 4263200*g*f)*a)*e)*b + (-f^2 + 2131600*a^2 - g^2 + 2*g*f)*c^3 + (f^2 - 2131600*a^2 + g^2 - 2*g*f)*e*c^2 + (f^2 - 2131600*a^2 + g^2 - 2*g*f)*e^2*c + (-f^2 + 2131600*a^2 - g^2 + 2*g*f)*e^3) / ((4263200*d^2 + 4263200*c^2 + 4263200*g^2 + 4263200*f^2 - 8526400*d*c - 8526400*g*f)*b^2 - 8526400*a*(-e + c)*(c - d)*b + 4263200*(-e + c)^2*((1/1460)*f - (1/1460)*g + a)*(-(1/1460)*f + (1/1460)*g + a))
z = (1/4263200)*(((1460*d - 1460*c)*b + 1460*a*(-e + c))*(-9685390482496000000*(-(1/2131600)*f^2 + (1/1065800)*g*f - (1/2131600)*g^2 + ((1/1460)*c - (1/1460)*d + a)*(-(1/1460)*c + (1/1460)*d + a))*((1/1460)*c - (1/1460)*e + b)*b^2*(-g + f)^2*(-(1/1460)*c + (1/1460)*e + b)*(b^2 - 2*a*b - (1/2131600)*f^2 + (1/1065800)*g*f - (1/2131600)*g^2 + (-(1/1460)*d + (1/1460)*e + a)*((1/1460)*d - (1/1460)*e + a)))^(1/2) + 4543718560000*b*(-g + f)*(-a*(-g + f)*b^3 + ((1/1065800)*f*c^2 + ((-(3/2131600)*d - (1/2131600)*e)*f - (1/2131600)*g*(d - e))*c + (1/2131600)*f^3 - (1/2131600)*f^2*g + (a^2 + (1/2131600)*d*e - (1/2131600)*g^2 + (1/2131600)*d^2)*f - (-(1/2131600)*g^2 + (1/2131600)*d*e - (1/2131600)*d^2 + a^2)*g)*b^2 - (3/2131600)*(((1/3)*g + f)*c + (-(4/3)*d + (1/3)*e)*f - (1/3)*g*e)*a*(-e + c)*b + (1/2131600)*(-(1/2131600)*(-g + f)*(d - e)*c - (1/2131600)*f^3 + (1/2131600)*f^2*g + (a^2 + (1/2131600)*d^2 - (1/2131600)*d*e + (1/2131600)*g^2)*f + (-(1/2131600)*g^2 + (1/2131600)*d*e - (1/2131600)*d^2 + a^2)*g)*(-e + c)^2)) / (b*(-g + f)*((f^2 + d^2 - 2*g*f - 2*d*c + c^2 + g^2)*b^2 - 2*a*(-e + c)*(c - d)*b + (-e + c)^2*((1/1460)*f - (1/1460)*g + a)*(-(1/1460)*f + (1/1460)*g + a)))
}
and
{
x = (-1460*(-9685390482496000000*(-(1/2131600)*f^2 + (1/1065800)*g*f - (1/2131600)*g^2 + ((1/1460)*c - (1/1460)*d + a)*(-(1/1460)*c + (1/1460)*d + a))*((1/1460)*c - (1/1460)*e + b)*b^2*(-g + f)^2*(-(1/1460)*c + (1/1460)*e + b)*(b^2 - 2*a*b - (1/2131600)*f^2 + (1/1065800)*g*f - (1/2131600)*g^2 + (-(1/1460)*d + (1/1460)*e + a)*((1/1460)*d - (1/1460)*e + a)))^(1/2) + (4543718560000*a*d - 4543718560000*a*c)*b^3 + (2131600*c^3 - 2131600*d*c^2 + (9087437120000*a^2 - 2131600*d^2)*c + (-4263200*g*f - 4543718560000*a^2 + 2131600*g^2 + 2131600*f^2)*e - 4263200*f*g*d + 2131600*d*g^2 - 4543718560000*d*a^2 + 2131600*d^3 + 2131600*d*f^2)*b^2 + (-4263200*a*c^3 + (2131600*a*e + 2131600*a*d)*c^2 + (2131600*a*e^2 - 4543718560000*a^3 + (2131600*d^2+2131600*f^2 - 4263200*g*f+2131600*g^2)*a)*c - 2131600*d*a*e^2 + (4543718560000*a^3 + (-2131600*d^2 - 2131600*g^2 - 2131600*f^2 + 4263200*g*f)*a)*e)*b + (-f^2 + 2131600*a^2 - g^2 + 2*g*f)*c^3 + (f^2 - 2131600*a^2 + g^2 - 2*g*f)*e*c^2 + (f^2 - 2131600*a^2 + g^2 - 2*g*f)*e^2*c + (-f^2 + 2131600*a^2 - g^2 + 2*g*f)*e^3) / ((4263200*d^2 + 4263200*c^2 + 4263200*g^2 + 4263200*f^2 - 8526400*d*c - 8526400*g*f)*b^2 - 8526400*a*(-e + c)*(c-d)*b + 4263200*(-e + c)^2*((1/1460)*f - (1/1460)*g + a)*(-(1/1460)*f + (1/1460)*g + a))
z = (1/4263200)*(((-1460*d + 1460*c)*b - 1460*a*(-e + c))*(-9685390482496000000*(-(1/2131600)*f^2 + (1/1065800)*g*f - (1/2131600)*g^2 + ((1/1460)*c - (1/1460)*d+a)*(-(1/1460)*c + (1/1460)*d + a))*((1/1460)*c - (1/1460)*e + b)*b^2*(-g + f)^2*(-(1/1460)*c + (1/1460)*e + b)*(b^2 - 2*a*b - (1/2131600)*f^2 + (1/1065800)*g*f - (1/2131600)*g^2 + (-(1/1460)*d + (1/1460)*e + a)*((1/1460)*d - (1/1460)*e + a)))^(1/2) + 4543718560000*b*(-g + f)*(-a*(-g + f)*b^3 + ((1/1065800)*f*c^2 + ((-(3/2131600)*d - (1/2131600)*e)*f - (1/2131600)*g*(d - e))*c + (1/2131600)*f^3 - (1/2131600)*f^2*g + (a^2 + (1/2131600)*d*e - (1/2131600)*g^2 + (1/2131600)*d^2)*f - (-(1/2131600)*g^2 + (1/2131600)*d*e - (1/2131600)*d^2 + a^2)*g)*b^2 - (3/2131600)*(((1/3)*g + f)*c + (-(4/3)*d + (1/3)*e)*f - (1/3)*g*e)*a*(-e + c)*b + (1/2131600)*(-(1/2131600)*(-g + f)*(d - e)*c - (1/2131600)*f^3 + (1/2131600)*f^2*g + (a^2 + (1/2131600)*d^2 - (1/2131600)*d*e + (1/2131600)*g^2)*f + (-(1/2131600)*g^2 + (1/2131600)*d*e - (1/2131600)*d^2 + a^2)*g)*(-e + c)^2))/(b*(-g + f)*((f^2 + d^2 - 2*g*f - 2*d*c + c^2 + g^2)*b^2 - 2*a*(-e + c)*(c - d)*b + (-e + c)^2*((1/1460)*f - (1/1460)*g + a)*(-(1/1460)*f + (1/1460)*g + a)))
}
(Gesh it's tiring to reformat these long expressions for the autowrap!)

2 commentaires

harry
harry le 2 Juin 2011
Thank you~
harry
harry le 2 Juin 2011
Very thanks... And I'm really sorry coz i made a mistake that only one fuction... one more please...
You can read new question

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Chemistry dans Centre d'aide et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by