> 数学 >
mathematica 7 中,怎样计算自定义函数的定积分?
f[x_] := x /; (x >= 0) && (x < 1/2)
f[x_] := 1 - x /; (x >= 1/2) && (x
人气:485 ℃ 时间:2020-06-29 15:39:10
解答
用Which命令啊,
a = Which[0 <= x < 1/2, x, 1/2 <= x <= 1, 1 - x]
PiecewiseExpand[a]
Integrate[a, {x, 0, 1}]
推荐
猜你喜欢
© 2024 79432.Com All Rights Reserved.
电脑版|手机版