数学建模社区-数学中国
标题:
Maple13求解微分方程出错,求指导~~~
[打印本页]
作者:
leonardo2008lh
时间:
2010-6-23 20:20
标题:
Maple13求解微分方程出错,求指导~~~
代码下
( E, i) V* d: o1 c; U% z4 _7 a
restart:
0 c7 d! V3 {3 }6 T5 x
q[off] := Q*exp(-tau*(t-t[off]));
2 v e- Y/ V) F1 R
q[on] := Q*(1-exp(-tau*t));
$ k( h. Z- N5 H. o" c2 Z
deq := diff(T(t), t) = -k*A*(T(t)-Tu)/(M*c)+q/(M*c);
8 @, e2 Z$ v8 x8 n. E
sol1 := dsolve({subs(q = q[on], deq), T(0) = T0}, T(t));
7 l# q9 G) H7 P% n3 J
T[off] := unapply(rhs(sol1), t);
& u* M; H' ]; u$ }* U
sol2 := dsolve({subs(q = q[off], deq), T(t[off]) = T[off](t[off])}, T(t));
; y# z/ R) a! P
前面运行都没问题,最后一行出错,显示:
7 K' ^2 j& G! U4 ^0 {( B
Error, (in type/DEtools/ODE_IC) found the independent variable, t, also present as an indexed variable, t[off]
/ {$ b- ^0 d3 ]- e4 B q, u% r: s
刚刚学maple,不知道怎么改错,求高手指导~~~
. Z' ^" [+ @8 ?) t6 ^
作者:
linmatsas
时间:
2010-6-23 22:37
不懂啊~~~~~占个沙发~~~~我只知道MATLAB还学的不好~~~~
作者:
zhd17101452
时间:
2010-7-13 17:47
括号错误括号错误括号错误
欢迎光临 数学建模社区-数学中国 (http://www.madio.net/)
Powered by Discuz! X2.5