ddtt 发表于 2020-5-8 01:21

请问各位高手,mathematica多个分段函数如何相加

请问各位高手,mathematica多个不同的分段函数如何相加。例如,下面这两个分段函数:f1:=Piecewise[{{1 - (1 - x)/h,    0 <= x <= 1}, {1 - (x - 1)/h,
   1 < x <= 2}, {0,
   x < 0 Or x > 2}}]    ,  f2:=Piecewise[{{1 - (2 - x)/h,
   1 <= x <= 2}, {1 - (x - 2)/h,
   2 < x <= 3}, {0,
   x < 1 Or x > 3}}]。谢谢大家了。


页: [1]
查看完整版本: 请问各位高手,mathematica多个分段函数如何相加