⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 bernapprox.m

📁 Mathematical Methods by Moor n Stiling.
💻 M
字号:
% Plot Bernstein polynomials
% Copyright 1999 by Todd K. Moon

t = 0:.01:1;

subplot(2,2,1);
n = 5;
sum = 0;
for k=0:5
  plot(t,bernpoly(n,k,t));
  hold on
  sum = sum +exp(k/n)* bernpoly(n,k,t);
end
xlabel('\itt');
ylabel('\itg_{nk}(\itt), k=0,1,...,5');
print -dps ../pictures/bernpoly.ps

clf
subplot(2,2,1);
plot(t,exp(t),t,sum,'--');
xlabel('\itt');
ylabel('\ite^t and approximation');
print -dps ../pictures/bernapprox.ps

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -