Hugging Face
Models
Datasets
Spaces
Posts
Docs
Enterprise
Pricing
Log In
Sign Up
Datasets:
ACCC1380
/
duifenyi
like
0
Dataset card
Files
Files and versions
Community
main
duifenyi
/
定积分作业.m
ACCC1380
Update 定积分作业.m
2bca7ce
verified
8 months ago
raw
Copy download link
history
blame
contribute
delete
188 Bytes
2
.
% 定义函数
f
=
@(x) log(
1
+ x) ./ (
1
+ x.^
2
);
% 计算定积分
jifen
=
integral(f,
0
,
1
)
%梯形
x
=
[
0.3
:
0.2
:
1.5
]
y
=
[
0.3895
,
0.6598
,
0.9147
,
1.1611
,
1.3971
,
1.6212
,
1.8325
]
I
=
trapz(x,y)