error when trying to calculate a limit with double variable.
Afficher commentaires plus anciens
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 ?
Réponse acceptée
Plus de réponses (1)
David Hill
le 10 Nov 2020
Use symbolic for limit function.
syms n;
un = (1+1/n)^n;
limit(un,n,inf);
1 commentaire
Jéssica Martins
le 10 Nov 2020
Catégories
En savoir plus sur Conversion Between Symbolic and Numeric dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!