best approximation for double numbers
古いコメントを表示
I have the following function which has an asymptote for y = 1 :
syms f(x)
syms x
f(x) = 1 / (1 + exp(-((x + 8.4730) / 10 )));
So, so the function should have a value < 1 for all x.
Also using "format long", of course, from a certain value of x onwards, the result of the function is approximated to 1.
format long
double(f(400)) % ans = 1
Is there a way to get an approximation to the exact value for even larger x? Or should I settle for this approximation?
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Numbers and Precision についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!




