Solution of non linear equation
Mostrar comentarios más antiguos
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 comentarios
Bjorn Gustavsson
el 21 de Sept. de 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
el 21 de Sept. de 2019
Bjorn Gustavsson
el 21 de Sept. de 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
el 21 de Sept. de 2019
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Plot Settings en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!


