数学建模社区-数学中国

标题: Maple13求解微分方程出错,求指导~~~ [打印本页]

作者: leonardo2008lh    时间: 2010-6-23 20:20
标题: Maple13求解微分方程出错,求指导~~~
代码下, f7 W: z* r5 d0 o
restart:
0 u2 z8 j2 ?1 L1 m. e! {q[off] := Q*exp(-tau*(t-t[off]));
, y. y2 U6 v- Pq[on] := Q*(1-exp(-tau*t));9 @  m' A' u# m6 g
deq := diff(T(t), t) = -k*A*(T(t)-Tu)/(M*c)+q/(M*c);0 p( ]6 R4 c" D1 }* o8 P
sol1 := dsolve({subs(q = q[on], deq), T(0) = T0}, T(t));
! k% c2 D6 N- A9 R" P1 r" Z3 D! ET[off] := unapply(rhs(sol1), t);8 ]3 g) \' D( ]( t$ S+ W7 F$ ?
sol2 := dsolve({subs(q = q[off], deq), T(t[off]) = T[off](t[off])}, T(t));
3 W8 b/ C& L5 S. v% K+ `8 K( Y" l前面运行都没问题,最后一行出错,显示:9 m- N# k1 {* P. [
Error, (in type/DEtools/ODE_IC) found the independent variable, t, also present as an indexed variable, t[off]8 O  d" J8 J8 u/ P5 T
刚刚学maple,不知道怎么改错,求高手指导~~~
' C) z, i" j, E3 H0 i4 o
作者: linmatsas    时间: 2010-6-23 22:37
不懂啊~~~~~占个沙发~~~~我只知道MATLAB还学的不好~~~~
作者: zhd17101452    时间: 2010-7-13 17:47
括号错误括号错误括号错误




欢迎光临 数学建模社区-数学中国 (http://www.madio.net/) Powered by Discuz! X2.5