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

답변 (1개)

Torsten
Torsten 2017년 3월 8일

0 개 추천

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

댓글 수: 3

Goktug Guvercin
Goktug Guvercin 2017년 3월 8일
편집: Goktug Guvercin 2017년 3월 8일
lim = @(x) limit( (1 + 1/x)^x, x, inf)
lim(8) is not working
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.

댓글을 달려면 로그인하십시오.

카테고리

도움말 센터 및 File Exchange에서 Installing Products에 대해 자세히 알아보기

태그

질문:

2017년 3월 8일

댓글:

2017년 3월 8일

Community Treasure Hunt

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

Start Hunting!

Translated by