From: mas on 16 May 2010 20:44 Hi, I would like to solve quadratic equations that are in the form Ax^2 + Bxy + Cy^2 + Dx + Ey + F = 0 If I use solve command how to pass the parameters of this equation (A, B, C, D, E, F) to the command. So I mean that there is a for loop and these parameters change in each iteration.... Thanks in advance
From: Greg Heath on 16 May 2010 20:59 On May 16, 8:44 pm, "mas " <m...(a)egypt.ca> wrote: > Hi, > > I would like to solve quadratic equations that are in the form > Ax^2 + Bxy + Cy^2 + Dx + Ey + F = 0 > > If I use solve command how to pass the parameters of this equation (A, B, C, D, E, F) to the command. So I mean that there is a for loop and these parameters change in each iteration.... > Why use solve when you can write the equations for the solution?? Hope this helps. Greg
From: mas on 17 May 2010 00:22 Greg Heath <heath(a)alumni.brown.edu> wrote in message <9339e918-764a-436f-88cb-785c0af96304(a)j27g2000vbp.googlegroups.com>... > On May 16, 8:44 pm, "mas " <m...(a)egypt.ca> wrote: > > Hi, > > > > I would like to solve quadratic equations that are in the form > > Ax^2 + Bxy + Cy^2 + Dx + Ey + F = 0 > > > > If I use solve command how to pass the parameters of this equation (A, B, C, D, E, F) to the command. So I mean that there is a for loop and these parameters change in each iteration.... > > > > Why use solve when you can write the equations for the solution?? > > Hope this helps. > > Greg Thank you for your reply ... Do you mean to try to solve the 2 quadratic equations analytically so I can get expression of the intersection points.
From: aasim Azooz on 17 May 2010 01:58 "mas " <mas(a)egypt.ca> wrote in message <hsq3gk$koi$1(a)fred.mathworks.com>... > Hi, > > I would like to solve quadratic equations that are in the form > Ax^2 + Bxy + Cy^2 + Dx + Ey + F = 0 > > If I use solve command how to pass the parameters of this equation (A, B, C, D, E, F) to the command. So I mean that there is a for loop and these parameters change in each iteration.... > > Thanks in advance >>syms x y A B C D E F >> solve('A*x^2 + B*x*y + C*y^2 + D*x + E*y + F = 0') ans = [ 1/2/A*(-D-B*y+(D^2+2*D*B*y+B^2*y^2-4*A*E*y-4*A*F-4*A*C*y^2)^(1/2))] [ 1/2/A*(-D-B*y-(D^2+2*D*B*y+B^2*y^2-4*A*E*y-4*A*F-4*A*C*y^2)^(1/2))] Aasim Azooz
From: Greg Heath on 17 May 2010 11:55 On May 17, 12:22 am, "mas " <m...(a)egypt.ca> wrote: > Greg Heath <he...(a)alumni.brown.edu> wrote in message <9339e918-764a-436f-88cb-785c0af96...(a)j27g2000vbp.googlegroups.com>... > > On May 16, 8:44 pm, "mas " <m...(a)egypt.ca> wrote: > > > Hi, > > > > I would like to solve quadratic equations that are in the form > > > Ax^2 + Bxy + Cy^2 + Dx + Ey + F = 0 > > > > If I use solve command how to pass the parameters of this equation (A, B, C, D, E, F) to the command. So I mean that there is a for loop and these parameters change in each iteration.... > > > Why use solve when you can write the equations for the solution?? > > > Hope this helps. > > > Greg > > Thank you for your reply ... Do you mean to try to solve the 2 quadratic equations analytically so I can get expression of the intersection points. SORRY! PLEASE IGNORE. I misread the question. gREG
|
Next
|
Last
Pages: 1 2 Prev: Class Diagram (e.g. UML, etc) Next: aligning backbone atoms using 'pdbsuperpose' |