Solution of non linear equation
Show older comments
Hello,
Let tan(y)-c*tan(a*y)=0 be an equation.
question; is there any a and c such that this equation dos not have any solution. when i apply this code i obtain the empty set:
syms y c a
eq1 = tan(y)-c*tan(a*y);
gargar = solve(eq1)
then gargar = empty set. I think that this mean that there exists a and c such that our equation does not have any solution. But i cannot find this two reals a and c. please help.
4 Comments
Bjorn Gustavsson
on 21 Sep 2019
I think you go about this problem wrongly. Make plots for a few combinations of a and c and see what the curves (both tan(x) and c*tan(a*x)) look like, over a range of -4.7*pi <= x <= 5.17*pi. Then you'll get a better grasp of what's going on.
HTH
Abdessami Jalled
on 21 Sep 2019
Bjorn Gustavsson
on 21 Sep 2019
Here's some sample code:
x = linspace(-4.7*pi,4.17*pi,3013); % Generate an array for the independent variable
a = 0.2; % some values for a
c = 5; % and c
plot(x,tan(x))
hold on
plot(x,c*tan(a*x))
axis([-15 15 -22.5 22.5])
The thing is that you should then think about what the curves imply - you have two piece-wise continuous functions, what has to be true for them never to be equal? This part is not a question
for computations - numerical or sybolic - but for thinking.
Abdessami Jalled
on 21 Sep 2019
Accepted Answer
More Answers (0)
Categories
Find more on Plot Settings 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!

