Colin Gillespie

60 Reputation

2 Badges

18 years, 116 days

MaplePrimes Activity


These are questions asked by Colin Gillespie

Dear All,

I've just started using MapleTA and I'm exploring the Latex capabilities. The test question that I have constructed looks like:

\begin{question}{blanks}
\qutext{Test  \blank[formula]{\var{ans}} Test.}
\code{
$a2=Matrix([[1,2],[3,4]]);
$c=LinearAlgebra[MatrixInverse]($a2);
$a=rand(5,9,2);
$inc=int(rint(3)+2);
$b=$a-$inc;
$ans=int(10^$inc);
}
\end{question}
\end{topic}
 

However, I get the following error during latex conversion:

Dear All, I have two odes, dX/dt = -X(t)*Y(t) and dY(t)/dt = X(t)*Y(t) I can solve these numerically using the following code: eq_1:=diff(X(t), t)=-X(t)*Y(t); eq_2:=diff(Y(t),t)=X(t)*Y(t); IC:={eq_1, eq_2,X(0)=10,Y(0)=1}; F:=dsolve(IC, {X(t),Y(t)},type=numeric, method=rosenbrock); h := theta->eval(X(t),F(theta)); h(1); However, I would like to add perturbations at specific time points. For example, at t=10, set X=5, or at t=15, Y=0. How should I do this in maple? Note: my actual situation involves a 100 odes. Thanks, Colin
Dear All, I seem to be having trouble with 0^n in maple, can someone help? Essentially, I have a complex function that simplifies under certain conditions to
f:=1.*0.^n/factorial(n);
but
sum(f,n=0...0);
gives 0. Whereas,
evalf(subs(n=0,f));
gives 1. Any ideas? Thanks Colin
1 2 Page 2 of 2