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

조회 수: 3 (최근 30일)
Maruti Patil
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
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
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:

카테고리

Help CenterFile Exchange에서 Visual Exploration에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by