Parametric Intersection point calculation of two curves
Show older comments
Hi all. I have a problem with the code below,
inter = solve('x-((y+a)/(x+b))^2','y-((y-a)/(x-b))^2','x','y'); inter.x; inter.y
where the given error is;
_Error using ==> mupadengine.mupadengine>mupadengine.feval at 144 MuPAD error: Error: Recursive definition [See ?MAXDEPTH];
during evaluation of 'ff'
Error in ==> solve at 77 sol = eng.feval('symobj::solvefull',eqns,vars);
Error in ==> newm at 18 inter = solve('x-((y+a)/(x+b))^2','y-((y-a)/(x-b))^2','x','y');_
On the other hand, if I change the parameters a and b with the values 2 and 1 respectively, it works great and reveals 7 intersection points, but I have to find the intersection point functions consisting of a and b. Such as a+2b, a^2-b^2 ....
All help is greatly appreciated.
2 Comments
Roger Stafford
on 4 Sep 2014
As you have stated your problem, there are no simultaneous solutions to your two equations unless a = 0, because you are requiring both y = -a and y = a. If matlab gives you solutions with the substitution a = 2, then matlab would be lying to you. Are you sure you have described your problem accurately?
Adelante
on 4 Sep 2014
Accepted Answer
More Answers (0)
Categories
Find more on Evaluation in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!