Re: NDSolve::mconly error
- To: mathgroup at smc.vnet.net
- Subject: [mg59281] Re: [mg59254] NDSolve::mconly error
- From: Pratik Desai <pdesai1 at umbc.edu>
- Date: Thu, 4 Aug 2005 02:08:04 -0400 (EDT)
- References: <200508030519.BAA06383@smc.vnet.net>
- Sender: owner-wri-mathgroup at wolfram.com
topolog at gazeta.pl wrote: >Dear Mathematica users! > >I can not pass a Complex number as an argument to the function below. >An error occures: > > >NDSolve::mconly: > For the method NDSolve`IDA, only machine real code is available. >Unable to > continue with complex values or beyond floating point exceptions. > > >Everethying is ok, when the number is declared as Real, but I >suppose it is so. > >The function is of the form: > >ndsolut[W_?NumberQ] := NDSolve[eqset /. {w -> W}, dVar, {z, z1, z2}, > SolveDelayed -> True]; > > > I think NDSolve will evaluate if you give the value to w outside of the NDSolve command w=Random[]+I*Pi NDSolve[...................] Maybe you can put all this in a module...which sounds to me very complicated as supposed to just using NDSolve independantly ...hmmm....Although you seem to require this in a functional form...Good Luck :) >where 'eqset' is a set of differential equations, 'dVar' is a >function to be solved, z - independent variable, w/W - parameters >(complex in general). > >The function is called in a following way: > >W = 1.+1.*\[ImaginaryI] >ndsolut[W] > > Why not ndsolut[1.+1*\Imaginary]?? > >I will appreciate any suggestions > >Thank you and best regards > >Rafal Kosinski > > > > > > Best regards Pratik Desai -- Pratik Desai Graduate Student UMBC Department of Mechanical Engineering Phone: 410 455 8134
- References:
- NDSolve::mconly error
- From: <topolog@gazeta.pl>
- NDSolve::mconly error