MathGroup Archive 2001

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

Search the Archive

Re: Vertical Asymptote


Jan,

gr=Plot[{Sqrt[(x-5)/(1-3x)],1/3},{x,1/3,5},
    PlotStyle->{{RGBColor[0,0,0]},{RGBColor[0,0,1]}}]


        -Graphics-

Look at what the output, -Graphics-,  is to see what can be done

gr//InputForm

We can work on the black line

gr/.bln:{RGBColor[0,0,0],{Line[{p_,___}]}}:>
    Sequence[bln,{RGBColor[1,0,0],{Line[{{1/3,0},p}]}}]

Show the result

Show[%];
--
Allan
---------------------
Allan Hayes
Mathematica Training and Consulting
Leicester UK
www.haystack.demon.co.uk
hay at haystack.demon.co.uk
Voice: +44 (0)116 271 4198
Fax: +44 (0)870 164 0565

"Jan Vuerinckx" <Jan.Vuerinckx at Skynet.be> wrote in message
news:9imb7c$eo9$1 at smc.vnet.net...
> Hello,
>
> I am new to Mathematica and i try to plot the vertical asymptote at
> x=1/3 for
> Plot[{Sqrt[(x - 5)/(1 - 3x)], 1/3}, {x, 1/3, 5},
>   PlotStyle -> {{RGBColor [0, 0, 0]}, {RGBColor [0, 0, 1]}}]
> Can someone give me a hint please.
>
> Thanks
> Jan
>








  • Prev by Date: Re: OPTICA and GRIN media
  • Next by Date: Re: Voronoy Diagrams ?
  • Previous by thread: Re: Vertical Asymptote
  • Next by thread: Printing Large Base-n Numbers