马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?我要加入
x
第一题:求前10项的和:a(k+1)=a(k)*base
% calculates sum of first 10 values of the following series
a=[];
a(1)=input('input values a(1)');
base=input('input values base');
Sum=a(1);
for i=2:10
a(i)=a(i-1)*base;
Sum=Sum+a(i);
end;
plot(a);
输进去就报错:??? In an assignment A(I) = B, the number of elements in B and
I must be the same.
不懂怎么找a(1)和base..
第二题:见图,points)Archimedes’ Theorem: The total area under the parabola is 4/3 of the area of the blue
triangle.
Assuming that the triangle has area 1, the total area is an infinite sum
...1+2(1/8)+4(1/8)^2+8(1/8)^#
The first term represents the area of the triangle, the second term the
areas of the two green triangles, and so on.
Write a function which calculates an approximation of an area under
parabola (width and height defined by user) using the series above.
A value of approximation error should also be defined by user.
Plot the error of approximation (absolute value) as a function of
number of elements of the series.
基本没搞懂题目,高手帮忙把,跪求了...........
第三题:n^m 图2
基本上...比第二题还要不懂 |