Find intersections between equations
3 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Erez Dahan
le 27 Mai 2018
Réponse apportée : Ameer Hamza
le 27 Mai 2018
Hello! I'd like to know how to find the intersection between 2 equations, symbolically or with solve(). for example, the intersections between a line and a circle: y=-3x+1 , x^2+y^2=16 Thank you!
0 commentaires
Réponse acceptée
Ameer Hamza
le 27 Mai 2018
For symbolic answer
syms x
y = -3*x + 1;
eq = x^2+y^2==16;
sol = vpasolve(eq)
sol =
3/10 - 159^(1/2)/10
159^(1/2)/10 + 3/10
convert it to double
double(sol)
ans =
-0.9610
1.5610
0 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Symbolic Math Toolbox 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!