Initial commit
This commit is contained in:
commit
49047b316d
47 files changed
+323
No files matched your search
@@ -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)
|
||||
@@ -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
Reference in new issue
Block a user