error when trying to calculate a limit with double variable.
Mostra commenti meno recenti
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 ?
Risposta accettata
Più risposte (1)
David Hill
il 10 Nov 2020
Use symbolic for limit function.
syms n;
un = (1+1/n)^n;
limit(un,n,inf);
1 Commento
Jéssica Martins
il 10 Nov 2020
Categorie
Scopri di più su Conversion Between Symbolic and Numeric in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!