Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #10807 > unrolled thread

Re: How to rectify the error for NDSolve ?

Started byRahul Chakraborty <rahul.6sept@gmail.com>
First post2012-07-05 10:13 +0000
Last post2012-07-05 10:13 +0000
Articles 1 — 1 participant

Back to article view | Back to comp.soft-sys.math.mathematica


Contents

  Re: How to rectify the error for NDSolve ? Rahul Chakraborty <rahul.6sept@gmail.com> - 2012-07-05 10:13 +0000

#10807 — Re: How to rectify the error for NDSolve ?

FromRahul Chakraborty <rahul.6sept@gmail.com>
Date2012-07-05 10:13 +0000
SubjectRe: How to rectify the error for NDSolve ?
Message-ID<jt3pc0$11q$1@smc.vnet.net>
I have made the changes as suggested by Bob but still some errors are there:

 Clear[x,Q,\[CapitalGamma],\[Phi]];
Q=100;
\[CapitalGamma]=50;
Subscript[\[Omega], 0]=10;
Subscript[V, p]=1/2;
Subscript[C, 0]=406 * 10^-6;
\[Phi]=90;
Subscript[V, 1][t]=Sqrt[2] Subscript[V, p]Sin[2Subscript[\[Omega], 0]t];
eqn= x''[t]+Subscript[\[Omega], 0]/Q x'[t]+(Subscript[\[Omega], 0]^2)[1+Subscript[c, 0]Subscript[V, 1][t]]x[t]==\[CapitalGamma] Sin[Subscript[\[Omega], 0]t+\[Phi]]//Simplify;
sol=NDSolve[{eqn,x[0]==1/2,x'[0]==0},x[t],{t,0,25}][[1]]
ParametricPlot[Evaluate[{x[t]/.sol,D[x[t]/.sol,t]}],{t,0,25},Frame->True,AxesLabel->{"t",Overscript[\[Theta],"."]},AspectRatio->1]

Errors:

 Set::write: Tag Times in (0.707107 Sin[20 t])[t] is Protected. >>

NDSolve::ndnum: Encountered non-numerical value for a derivative at t == 0.`. >>



Plz suggest what shall i do to get the solution.


Regards,
rc

[toc] | [standalone]


Back to top | Article view | comp.soft-sys.math.mathematica


csiph-web