How to find the common root between two quadratic equations?
    3 vues (au cours des 30 derniers jours)
  
       Afficher commentaires plus anciens
    
Hi evryone,
Am a beginner to Matlab,m trying to find out the common root between two quadratic equations of same variable x..plzz tell me how to do it. Plzz help!
0 commentaires
Réponses (2)
  Walter Roberson
      
      
 le 24 Août 2013
        Let the two equations be of the form
a1*x^2+b1*x+c1 = 0
a2*x^2+b2*x+c2 = 0
then if
(1/4)*a2*b1^2/a^2+(-(1/2)*b2/a+(1/2)*a2*(b1^2-4*a1*c1)^(1/2)/a^2)*b1+(1/4)*a2*(b1^2-4*a1*c1)/a^2+c2-(1/2)*b2*(b1^2-4*a1*c1)^(1/2)/a
is 0, then the common root is
(-b1-sqrt(b1^2-4*a1*c1))/(2*a)
and otherwise the common root is
(-b1+sqrt(b1^2-4*a1*c1))/(2*a)
Provided, that is, that there really is a common root.
0 commentaires
Voir également
Catégories
				En savoir plus sur Numerical Integration and Differential Equations dans Help Center et File Exchange
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!


