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
Goktug Guvercin
Goktug Guvercin 2017 年 3 月 8 日
function O = lim(x)
O = limit( (1 + 1/x)^x, x, inf)
lim(8) is also not working
Torsten
Torsten 2017 年 3 月 8 日
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