i dont know why there is no anwser about this 'solve'
1 view (last 30 days)
Show older comments
clc;
close all;
clear;
a1=20;
b1=20;
k1=sqrt((a1+10)^2+b1^2)-sqrt((a1-10)^2+b1^2)
syms a b k;
equ2= a==20;
equ3= b==20;
equ1= k==sqrt((a+10)^2+b^2)-sqrt((a-10)^2+b^2);
k=solve(equ1,equ2,equ3,k)
0 Comments
Accepted Answer
Fabio Freschi
on 8 Mar 2023
Edited: Fabio Freschi
on 8 Mar 2023
Your call to solve is incorrect
clear all
syms a b k
equ2= a==20;
equ3= b==20;
equ1= k==sqrt((a+10)^2+b^2)-sqrt((a-10)^2+b^2);
sol=solve([equ1; equ2; equ3],[k a b])
More Answers (1)
Torsten
on 8 Mar 2023
Edited: Torsten
on 8 Mar 2023
Three equations need three unknowns, not only one.
clc;
close all;
clear;
a1=20;
b1=20;
k1=sqrt((a1+10)^2+b1^2)-sqrt((a1-10)^2+b1^2)
syms a b k
equ2= a==20;
equ3= b==20;
equ1= k==sqrt((a+10)^2+b^2)-sqrt((a-10)^2+b^2);
sol=solve([equ1,equ2,equ3],[a b k])
k = double(sol.k)
3 Comments
Torsten
on 9 Mar 2023
Edited: Torsten
on 9 Mar 2023
All the points on the blue curve below are solutions. MATLAB cannot list all of them - thus it lists none.
hold on
fimplicit(@(a,b)sqrt((a+10).^2+b.^2)-sqrt((a-10).^2+b.^2)-(sqrt((20+10)^2+20^2)-sqrt((20-10)^2+20^2)),[0 40 0 40])
plot(20,20,'o')
hold off
grid on
See Also
Categories
Find more on Polynomials 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!