Re: How to remove part of ODE solution containing (0.+0.i)'s
- To: mathgroup at smc.vnet.net
- Subject: [mg44660] Re: [mg44646] How to remove part of ODE solution containing (0.+0.i)'s
- From: "Mihajlo Vanevic" <mvanevic at gawab.com>
- Date: Thu, 20 Nov 2003 03:16:26 -0500 (EST)
- Sender: owner-wri-mathgroup at wolfram.com
Use Chop[] (see help browser for details)
In[]:=
Chop[0. + 0. I]
Out[]=
0
In[]:=
Chop[{1. + 0.7*I, 0. + 0.*I}]
Out[]=
{1.\[InvisibleSpace] + 0.7 \[ImaginaryI], 0}
Regards,
Mihajlo Vanevic
www.mihajlo.greatnow.com
2003-11-19
**************************************************************
* At 2003-11-19, 04:59:00
* John Jansen, Johh at Jansen.net wrote:
**************************************************************
>Hi Group,
>
>When solving an ODE i get the correct result, but a lot of (0.+0.i)
>expressions are included. How can i tell Mathematica(V5) to discard
>these "nearly" zero's. Guess it is something about precision or accuracy.
>
>Best regards (Mathematica-newbee)
>John
**************************************************************