Parametric Intersection point calculation of two curves
Ältere Kommentare anzeigen
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 Kommentare
Roger Stafford
am 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
am 4 Sep. 2014
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Evaluation finden Sie in Hilfe-Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!