Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2007

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: What am I doing wrong with this code?

  • To: mathgroup at smc.vnet.net
  • Subject: [mg82558] Re: What am I doing wrong with this code?
  • From: Jean-Marc Gulliet <jeanmarc.gulliet at gmail.com>
  • Date: Wed, 24 Oct 2007 04:34:59 -0400 (EDT)
  • Organization: The Open University, Milton Keynes, UK
  • References: <ffkffr$spa$1@smc.vnet.net>

sean_incali wrote:
> I think I'm having a brain fart. Seriously...
> 
> Plot[{1/(1 + y^2), (1/y - 1)^(1/2)}, {y,  0, 5}]
> 
> What is wrong with that code? Maybe it's not solvable in mathematica?
> 
> I'm trying to plot nullclines of a system of ODEs. and those function
> up there are them. I just can't get mathematica to plot them in the
> same graph.
> 
> I get an error message saying...
> 
>>From In[22]:=
> (1/y - 1)^(1/2)  is not a machine-size real number at y =
> 1.0000001666666667`.
> 
> Any help is appreciated.

Well, are you fooling yourself? The above command works very well on my 
system (PC x86-32, Windows XP SP2, Mathematica 6.0.1) as you can see at

http://homepages.nyu.edu/~jmg336/mathematica/seanincali.pdf

Try a fresh kernel (I suspect that 'y' got some conflicting definition 
during your session).

Regards,
-- 
Jean-Marc


  • Prev by Date: Re: What am I doing wrong with this code?
  • Next by Date: Re: DSolving(?) for a given tangent
  • Previous by thread: Re: What am I doing wrong with this code?
  • Next by thread: Re: What am I doing wrong with this code?