How can i use limit function and my function ?

I want to define a function which gives me limit of (1 + 1/x)^x when x goes to infinity. However, the function must be user defined function. In other words, i want to match limit function and my function

Respuestas (1)

Torsten
Torsten el 8 de Mzo. de 2017

0 votos

f=@(x)exp(1)
Best wishes
Torsten.

3 comentarios

Goktug Guvercin
Goktug Guvercin el 8 de Mzo. de 2017
Editada: Goktug Guvercin el 8 de Mzo. de 2017
lim = @(x) limit( (1 + 1/x)^x, x, inf)
lim(8) is not working
Goktug Guvercin
Goktug Guvercin el 8 de Mzo. de 2017
function O = lim(x)
O = limit( (1 + 1/x)^x, x, inf)
lim(8) is also not working
Maybe
syms x
fs = (1+1/x)^x ;
lfs = limit(fs,x,inf);
hfs = matlabFunction(lfs)
?
Best wishes
Torsten.

Iniciar sesión para comentar.

Categorías

Más información sobre Installing Products en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 8 de Mzo. de 2017

Comentada:

el 8 de Mzo. de 2017

Community Treasure Hunt

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

Start Hunting!

Translated by