error when trying to calculate a limit with double variable.
Ältere Kommentare anzeigen
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 ?
Akzeptierte Antwort
Weitere Antworten (1)
David Hill
am 10 Nov. 2020
Use symbolic for limit function.
syms n;
un = (1+1/n)^n;
limit(un,n,inf);
1 Kommentar
Jéssica Martins
am 10 Nov. 2020
Kategorien
Mehr zu Common Operations finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!