I have plotted two equations. How to get their intersection point?.......Thanks

조회 수: 4(최근 30일)
Maruti Patil 2015년 9월 4일
댓글: Walter Roberson 2015년 9월 9일
ezplot('y-x^2+2.5*x=0');
ezplot('(x-5)^2+(y-3)^2=4');
I have plotted above two equations and I want the exact coordinates of intersection point how to do it?
댓글 수: 1표시숨기기 없음
Walter Roberson 2015년 9월 9일
Are you sure you need the exact coordinates? Because for example one of the x coordinates of the 4 intersections is
x = (1/12) * (3^(1/2) * ((592325 + 720 * 19385^(1/2))^(2/3) + 65 * (592325 + 720 * 19385^(1/2))^(1/3) + 6985)^(3/4) + 15 * (592325 + 720 * 19385^(1/2))^(1/6) * ((592325 + 720 * 19385^(1/2))^(2/3) + 65 * (592325 + 720 * 19385^(1/2))^(1/3) + 6985)^(1/4) - 3^(1/2) * (-((592325 + 720*19385^(1/2))^(2/3) + 65*(592325 + 720*19385^(1/2))^(1/3) + 6985)^(1/2)*(592325 + 720*19385^(1/2))^(2/3) + 130*(592325 + 720*19385^(1/2))^(1/3)*((592325 + 720*19385^(1/2))^(2/3) + 65*(592325 + 720*19385^(1/2))^(1/3) + 6985)^(1/2) + 360*3^(1/2)*(592325 + 720*19385^(1/2))^(1/2)-6985*((592325 + 720*19385^(1/2))^(2/3) + 65*(592325 + 720*19385^(1/2))^(1/3) + 6985)^(1/2))^(1/2))/((592325 + 720*19385^(1/2))^(1/6)*((592325 + 720*19385^(1/2))^(2/3) + 65*(592325 + 720*19385^(1/2))^(1/3) + 6985)^(1/4))
and the corresponding y is at least twice as long.

댓글을 달려면 로그인하십시오.

답변(1개)

Doug Hull 2015년 9월 9일
The cheap way to do this is to plot both and zoom in.
ezplot('(x-5)^2+(y-3)^2=4');
hold on
ezplot('y-x^2+2.5*x=0');
This all depends on what you mean by "exact".
The right answer is more along these lines:

댓글을 달려면 로그인하십시오.

범주

Find more on Coordinate Transformations and Trajectories in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by