Syeda

30 Reputation

5 Badges

11 years, 307 days

MaplePrimes Activity


These are replies submitted by Syeda

@Carl Love 

okay! Thankyou for replying!! But, while solving it directly it doesnot give any round-off error.

 

-0.363700352e-2*y^3-.4041941000*y^2+3.397775673*y-2.377540486 = 0

-0.363700352e-2*y^3-.4041941000*y^2+3.397775673*y-2.377540486 = 0

(1)

"(->)"

[[y = .7709248124], [y = 7.123944371], [y = -119.0286907]]

(2)

``

How can I apply Re command. These fromulas are very complex!

Can you please guide me? 

@nm 

 

Got these formulas from Maple by using general equation.

 

File is attached. I just copy paste it as y1, y2 and y3

 

A*y^3+B*y^2+C*y+E = 0

A*y^3+B*y^2+C*y+E = 0

(1)

"(->)"

[[y = (1/6)*(-108*E*A^2+36*C*B*A+12*3^(1/2)*(27*A^2*E^2-18*A*B*C*E+4*A*C^3+4*B^3*E-B^2*C^2)^(1/2)*A-8*B^3)^(1/3)/A-(2/3)*(3*A*C-B^2)/(A*(-108*E*A^2+36*C*B*A+12*3^(1/2)*(27*A^2*E^2-18*A*B*C*E+4*A*C^3+4*B^3*E-B^2*C^2)^(1/2)*A-8*B^3)^(1/3))-(1/3)*B/A], [y = -(1/12)*(-108*E*A^2+36*C*B*A+12*3^(1/2)*(27*A^2*E^2-18*A*B*C*E+4*A*C^3+4*B^3*E-B^2*C^2)^(1/2)*A-8*B^3)^(1/3)/A+(1/3)*(3*A*C-B^2)/(A*(-108*E*A^2+36*C*B*A+12*3^(1/2)*(27*A^2*E^2-18*A*B*C*E+4*A*C^3+4*B^3*E-B^2*C^2)^(1/2)*A-8*B^3)^(1/3))-(1/3)*B/A+((1/2)*I)*3^(1/2)*((1/6)*(-108*E*A^2+36*C*B*A+12*3^(1/2)*(27*A^2*E^2-18*A*B*C*E+4*A*C^3+4*B^3*E-B^2*C^2)^(1/2)*A-8*B^3)^(1/3)/A+(2/3)*(3*A*C-B^2)/(A*(-108*E*A^2+36*C*B*A+12*3^(1/2)*(27*A^2*E^2-18*A*B*C*E+4*A*C^3+4*B^3*E-B^2*C^2)^(1/2)*A-8*B^3)^(1/3)))], [y = -(1/12)*(-108*E*A^2+36*C*B*A+12*3^(1/2)*(27*A^2*E^2-18*A*B*C*E+4*A*C^3+4*B^3*E-B^2*C^2)^(1/2)*A-8*B^3)^(1/3)/A+(1/3)*(3*A*C-B^2)/(A*(-108*E*A^2+36*C*B*A+12*3^(1/2)*(27*A^2*E^2-18*A*B*C*E+4*A*C^3+4*B^3*E-B^2*C^2)^(1/2)*A-8*B^3)^(1/3))-(1/3)*B/A-((1/2)*I)*3^(1/2)*((1/6)*(-108*E*A^2+36*C*B*A+12*3^(1/2)*(27*A^2*E^2-18*A*B*C*E+4*A*C^3+4*B^3*E-B^2*C^2)^(1/2)*A-8*B^3)^(1/3)/A+(2/3)*(3*A*C-B^2)/(A*(-108*E*A^2+36*C*B*A+12*3^(1/2)*(27*A^2*E^2-18*A*B*C*E+4*A*C^3+4*B^3*E-B^2*C^2)^(1/2)*A-8*B^3)^(1/3)))]]

(2)

``

 

Download qstn2.mw

@Adri van der Meer 

 

ok! I got it..

Thankyou

@Adri van der Meer 

Thanks. ok!! Actually..

I want to find x at these values..

e.g when I Put first element of z1 and z2 in eq1

z1= 0.003042939 and z2= 0.997953273

I got x= 0.302221073

 

Similarly when I put second element of z1 and z2 in eq1

 z1= 0.135433537 and z2= 0.988583777

I got x= = 0.057875665

 

Cannot I find x in this form at all these 10 values..

I want output in this form

x= [0.302221073, 0.057875665, ........ ]

@gkokovidis 

 

Thanks for sharing..

@Markiyan Hirnyk 

 

Yes! This is now working! Thanks

@Adri van der Meer 

 

Thanks..

@Kitonum 

Thankyou for replying kitonum. No, actually! I don't want a unique solution. I have to check it for different values. I have other equations as well. But it gives many solutions while solving it ( for one case) . so want to define a range. In the above equation, x,y,z is within this range

@Markiyan Hirnyk 

Thankyou for replying!! I'm using Maple version 12.
I got these errors. Please advice:


restart; solve({x >= 0.1e-2, y >= 1, z >= 0.1e-2, y = 1.048+1.02*x+6.118*(z-4.041*x^2)+16.22*z^2+6.241*x*z, x <= .7, y <= 12, z <= .543}, {x, y, z}, allsolutions)

Error, (in solve) invalid arguments

 

SolveTools[SemiAlgebraic](convert({x >= 0.1e-2, y >= 1, z >= 0.1e-2, y = 1.048+1.02*x+6.118*(z-4.041*x^2)+16.22*z^2+6.241*x*z, x <= .7, y <= 12, z <= .543}, rational), [x, y, z])

Error, SemiAlgebraic is not a command in the SolveTools package

 

``


Download Equation.mw

 

 

 

 

 

 

 

@acer 

Ok thankyou..

@acer 

I input this:

 

> eq1 := y = -26.21231979*z+15.42332896+13.22411533*exp(-.6786*x);

eq2 := y = -25.98077423*z+14.81943362+13.53858145*exp(-.6569*x);


> fsolve(eval(rhs(eq1)-rhs(eq2), z = 1), x);


fsolve(0.37234978 + 13.22411533 exp(-0.6786 x) - 13.53858145 exp(-0.6569 x), x)

 

 don't know, why I am not getting a value of x?

@acer

I agree with all of your points acer.. You are genious!!
But my main task is to calculate value of x by putting any value of z.

This is just an example.. 

 

 

Thanks for replying Kitonum! Nice solution and it is working for me. But, can we make a general formula for that purpose which can fit any 3D data. Now, if i add some more values to a,b, c matrices. Then I have to set the  P1, P2 and F again? (from your code).  I have extremely large data and it has too many values. So, is there any solution to make a general formula for that purpose? 

 

Thanks for replying Kitonum! Nice solution and it is working for me. But, can we make a general formula for that purpose which can fit any 3D data. Now, if i add some more values to a,b, c matrices. Then I have to set the  P1, P2 and F again? (from your code).  I have extremely large data and it has too many values. So, is there any solution to make a general formula for that purpose? 

@Markiyan Hirnyk  Sorry I bothered you, now I got your point. Thanks again.

1 2 Page 1 of 2