hi every one i need series for erfc(x) match with it in plot
2 ビュー (過去 30 日間)
古いコメントを表示
i need correct series for the equation of erfc(x) and maching with it in plot
採用された回答
Sam Chak
2022 年 9 月 22 日
Hi @sura
Are you looking for something like this?
syms x
sympref('PolynomialDisplayStyle', 'ascend');
f = erfc(x); % function
T = taylor(f, 'Order', 8) % Taylor series
xd = -2:0.1:2;
yd = subs(f, x, xd);
fplot(T, [-2, 2])
hold on
plot(xd, yd, 'r-.'), grid on
title('Taylor approximation vs. actual function')
legend('Taylor','Function')
3 件のコメント
Torsten
2022 年 9 月 22 日
If you had studies Sam Chak's answer, you would have seen that your series expansion is just the one that he used for the plot.
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Error Functions についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!