error when trying to calculate a limit with double variable.
Mostrar comentarios más antiguos
When I execute the following code :
n=linspace(10,10e20);
un=(1+1./n).^n;
limit(un,n,inf);
It returns the following error: Undefined function 'limit' for input arguments of type 'double'.
can anyone help me get the value of the limit on matlab ?
Respuesta aceptada
Más respuestas (1)
David Hill
el 10 de Nov. de 2020
Use symbolic for limit function.
syms n;
un = (1+1/n)^n;
limit(un,n,inf);
1 comentario
Jéssica Martins
el 10 de Nov. de 2020
Categorías
Más información sobre Conversion Between Symbolic and Numeric 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!