Re: Plot function
- To: mathgroup at smc.vnet.net
- Subject: [mg84995] Re: Plot function
- From: Bill Rowe <readnewsciv at sbcglobal.net>
- Date: Tue, 22 Jan 2008 01:55:03 -0500 (EST)
On 1/21/08 at 4:12 AM, basukinjal at gmail.com (Kinjal Basu) wrote: >Im Having trouble with the Plot[] Function. It seems to plot a >function in x, given the range of x. >But if i have x as a function of y. How can i plot it ??? My >Function looks as >x= k*rArcSin[y/r] -rCos[ArcSin[y/r]] >k and r are constants I assume you have defined k and r before attempting to plot x. If so, how do you want to plot things? One way would be Plot[x /. {r -> 1, k -> 1}, {y, -1, 1}] But perhaps you want the plot to be in terms of x,y coordinates. If so, use ParametricPlot[{x /. {r -> 1, k -> 1}, y}, {y, -1, 1}] Or maybe you mean your expression to be an equality between x and the rhs rather than assigning the rhs to x. If so, you need to use '==" not "=" and ContourPlot, i.e.; ContourPlot[ Evaluate[x == k*r*ArcSin[y/r] - r*Cos[ArcSin[y/r]] /. {r -> 1, k -> 1}], {x, -1, 1}, {y, -1, 1}] -- To reply via email subtract one hundred and four