汇编 10进制转16进制 冒泡排序
编译原理实验一 PL/0语言词法分析

插你个值

scturtle posted @ 2010年4月05日 03:07 in 各种实验 , 1591 阅读

最近浑浑噩噩的  觉得还是打游戏比较有前途吧

讨厌的数值分析 看也看不懂 还有matlab

lagrange 插值

function l
clc,clear,close
a=[-3,0,3,6];
b=[-1,2,-2,10];

for i=1:100
   x(i)=i;
   y(i)=lagrange(a,b,x(i));
end
plot(x,y)

function y=lagrange(a,b,x)
n=length(a);
y=0;
for i=1:n
   y=y+b(i)*li(x,a,i);
end

function f=li(x,a,i)
n=length(a);
f=1;
for j=1:n
   if j~=i
      f=f*(x-a(j));
      f=f/(a(i)-a(j));
   end
end

 newton插值

function newton
clc,clear,close
a=[-3,0,3,6];
b=[-1,2,-2,10];

for i=1:100
   x(i)=i;
   y(i)=f(a,b,x(i));
end
plot(x,y)

function y=f(a,b,x)
n=length(a);
y=b(1);
for i=2:n
   t=1;
   for j=1:i-1
      t=t*(x-a(j));
   end
   y=y+t*juncha(a,b,1,i);
end
      
function f=juncha(a,b,m,n)
if m==n
   f=b(m);
else
   f=(juncha(a,b,m,n-1)-juncha(a,b,m+1,n))/(a(m)-a(n));
end

 

 Aitken:

function a
clc,clear,close
a=[-3,0,3,6];
b=[-1,2,-2,10];

for i=1:100
   x(i)=i;
   y(i)=aitken(a,b,x(i));
end
plot(x,y)

function y=aitken(a,b,x)
n=length(a);

if n==2
    y=b(1)*(x-a(2))-b(2)*(x-a(1));
    y=y/(a(1)-a(2));
else
    c=a;d=b;
    c(n)=[];d(n)=[];
    t1=aitken(c,d,x);
    c=a;d=b;
    c(n-1)=[];d(n-1)=[];
    t2=aitken(c,d,x);
    y=t1*(x-a(n))-t2*(x-a(n-1));
    y=y/(a(n-1)-a(n));
end
Junior Dakhil Result 说:
2022年9月03日 18:01

Bangladesh Education Board DPE has conducted the class 8th grade of Junior School Certificate Exam and Junior Dakhil Certificate Exam on 1st to 15th November 2022 at all centers in division wise under Ministry of Primary and Mass Education (MOPME), and the class 8th grade terminal examination tests are successfully conducted for all eligible JSC/JDC students for the academic year of 2022. Junior Dakhil Result The Bangladesh government Minister of Secondary Education is going to announce the JSC Result 2022 in student wise for division students in education board wise, and the result documents will be submitted to the Prime Minister of the country after then the result with mark sheet will be announced to public to check the individual result.

mein ebay zusammenfa 说:
2023年7月20日 23:50

Auf der Seite „Meine eBay-Zusammenfassung“ werden Informationen zu fast allen Bereichen Ihres eBay-Alltags angezeigt, z. B. Ihre Einkaufshistorie, eine Liste Ihrer zuletzt gesehenen Artikel, der Status Ihrer Anfragen und Angebote für Artikel im Ausverkauf, mein ebay zusammenfassung eine Übersicht über Ihre Einkaufshistorie, die Artikel, die Sie beobachten, sowie die Verkäufer und Looks, die Sie gespeichert haben. Ihre eBay-Startseite verfügt außerdem oben auf der Seite über drei separate Abschnitte, die den eBay-Aktivitäten, Nachrichten und dem Konto folgen.

AC Board 7th Questi 说:
2023年9月14日 15:33

State Council of Educational Research and Training (SCERT) Jharkhand has Going to Conducted High School Aunval Exam 2024, SCERT Jharkhand which is Mainly Responsible for Conducting Exam Every year, This SCERT Jharkhand 7th Exam Very Year More Than 25 Laks of Students Attended, SCERT Jharkhand is Administered by the State Government of Jharkhand and Thrives to Improve the Quality of JAC Board 7th Question Paper 2024 Education in the state.SCERT Jharkhand is also Responsible for Prescribing the SCERT Jharkhand Model Paper 2024 for the Students Studying in the Jharkhand Affiliated Schools, Jharkhand Question Paper 2024 Designed by Senior Experts Study Materiel help the Students to get an idea about the Final Exam 2024.


登录 *


loading captcha image...
(输入验证码)
or Ctrl+Enter