MATLAB爱好者论坛-LabFans.com

MATLAB爱好者论坛-LabFans.com (https://www.labfans.com/bbs/index.php)
-   Mathematica论坛 (https://www.labfans.com/bbs/forumdisplay.php?f=34)
-   -   [问题] 关于分段函数求微分的问题 (https://www.labfans.com/bbs/showthread.php?t=12470)

xsxcn 2011-01-14 14:23

关于分段函数求微分的问题
 
Mathematica 代码如下:
h = 0.25;
g[x_] := Piecewise[{{x/h, 0 <= x <= h}, {1 - (x - h)/h,
h <= x <= 2 h}}];
D[g[x], x]
...

结果有的时候并没有把微分求出来
只是在g[x]的前面加了一个偏x的符号。
请教怎么回事?


所有时间均为北京时间。现在的时间是 12:54

Powered by vBulletin
版权所有 ©2000 - 2025,Jelsoft Enterprises Ltd.