Info
이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.
* Edit post * Report this post * Reply with quote Numerical result of the solve function
조회 수: 1 (최근 30일)
이전 댓글 표시
I'm Seeking the common points to the parabola and the circle centered in the point A(Xa,Za)with AB radius.
Why not assume the function 'solve' the values of Xa, Za and AB in the equation and thus obtain a numerical result rather than analytical in the first call?
Xa=.5 Za=1 AB=1
%----------------------CÁLCULOS---------------------------------------------- % Za=1/(4*F)*Xa^2 - equation of the parabola that passes the point A(Xa,Za) % Zb=1/(4*F)*Xb^2; - equation of the parabola that passes the point B(Xb,Zb) % (Xb-Xa)^2+(Zb-Za)^2=AB^2 -equation of the circle of radius AB centered at the point A(Xa,Za) %............................................................................
% first call SOLVE [F,Xb,Zb]=solve('1/(4*F)*Xa^2-Za','1/(4*F)*Xb^2-Zb','(Xb-Xa)^2+(Zb-Za)^2-AB^2');
% call SOLVE with the values of Xa,Za,AB the result are numeric %--------------------------------------------------------------- [F,Xb,Zb]=solve('1/(4*F)*.5^2-1','1/(4*F)*Xb^2-Zb','(Xb-.5)^2+(Zb-.5)^2-1^2');
appreciate any help
댓글 수: 0
답변 (1개)
Walter Roberson
2011년 1월 27일
[F,Xb,Zb]=solve(subs('1/(4*F)*Xa^2-Za','1/(4*F)*Xb^2-Zb'),subs('(Xb-Xa)^2+(Zb-Za)^2-AB^2'));
댓글 수: 0
이 질문은 마감되었습니다.
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!