Initial commit

This commit is contained in:
biss committed 2025-10-10 17:29:33 +08:00
commit 49047b316d
47 files changed
+323

No files matched your search

+10
View File
@@ -0,0 +1,10 @@
shu=[];
for m=100:999
m1=fix(m/100);
m2=rem(fix(m/10),10);
m3=rem(m,10);
if m == m1^3 + m2^3 + m3^3
shu=[shu,m];
end
end
disp(shu)
+6
View File
@@ -0,0 +1,6 @@
y = 0;
n = 100;
for i=1:n
y=y+1/(i*i);
end
y
+14
View File
@@ -0,0 +1,14 @@
a = 0;
b = 3 * pi;
n = 1000;
h = (b-a)/n;
x=a;
s=0;
f0=exp(-0.5*x)*sin(x+pi/6);
for i=1:n
x=x+h;
f1=exp(-0.5*x)*sin(x+pi/6);
s=s+(f0+f1)*h/2;
f0=f1;
end
s
Loaded 3 of 47 files, more files were not shown because too many files have changed in this diff. Show more