Borrar filtros
Borrar filtros

Fzero is not working

4 visualizaciones (últimos 30 días)
Shlok Vaibhav Singh
Shlok Vaibhav Singh el 5 de Dic. de 2019
Comentada: dpb el 5 de Dic. de 2019
isn=1.5;
h=5e-6;
x=2*pi*3e14;
%
fzero(@(y)(tan(sqrt(x.^2.*n^2/const('c')^2-y.^2)*h/2)-sqrt(y.^2-x.^2/const('c')^2./sqrt(x.^2*n^2/const('c')^2-y.^2))))
Fzero is unable to find the root
  5 comentarios
Walter Roberson
Walter Roberson el 5 de Dic. de 2019
MATLAB does not do argument reduction for computations like that.
2*3e14 would be exactly representable as a double, by the way.
dpb
dpb el 5 de Dic. de 2019
Yeah, but moving just a tad to find a solution...??? Altho as formulated, I guess it is just a constant so maybe it itself isn't a problem. What is range of y expected to be, I wonder, though?

Iniciar sesión para comentar.

Respuestas (0)

Categorías

Más información sobre Optimization en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by