Math Software Math Software - Mathematica, Matlab, Calculators, Graphing Software

 July 23rd, 2012, 02:28 AM #1 Member   Joined: Apr 2010 Posts: 43 Thanks: 0 circle in mathematica Can somebody please tell me how can I draw cirlces in mathematica? Plot[y=x^2+5^2=5],{x,0,3}] does not work. July 23rd, 2012, 02:34 AM #2 Senior Member   Joined: Jul 2010 From: St. Augustine, FL., U.S.A.'s oldest city Posts: 12,211 Thanks: 521 Math Focus: Calculus/ODEs Re: circle in mathematica I know nothing about mathematica, but if you're trying to plot the circle centered at the origin having radius 5, perhaps: Plot[x^2+y^2=5^2],{x,-5,5} I'm guessing at the specific syntax though. July 23rd, 2012, 05:29 AM   #3
Global Moderator

Joined: Nov 2006
From: UTC -5

Posts: 16,046
Thanks: 938

Math Focus: Number theory, computational mathematics, combinatorics, FOM, symbolic logic, TCS, algorithms
Re: circle in mathematica

Quote:
 Originally Posted by kapital Plot[y=x^2+5^2=5],{x,0,3}] does not work.
That's because there are no real solutions to x^2 + 25 = 5, and because you use the undefined variable y.

Something like
Code:
Plot[{Sqrt[5^2 - x^2], -Sqrt[5^2 - x^2]}, {x, -5, 5}]
works. July 23rd, 2012, 05:42 AM #4 Member   Joined: Apr 2010 Posts: 43 Thanks: 0 Re: circle in mathematica Yes, what you have written are to equations. Is it possible to plot functions of to varibles (circles, elpises, hyperbolas) by just inserting the equation)? July 23rd, 2012, 05:58 AM #5 Global Moderator   Joined: Nov 2006 From: UTC -5 Posts: 16,046 Thanks: 938 Math Focus: Number theory, computational mathematics, combinatorics, FOM, symbolic logic, TCS, algorithms Re: circle in mathematica Zero equations, but rather a list of two expressions. I don't know if Mathematica can plot an equation directly. But you could give it just one expression in PolarPlot and it would work. July 26th, 2012, 04:29 AM #6 Math Team   Joined: Nov 2010 From: Greece, Thessaloniki Posts: 1,990 Thanks: 133 Math Focus: pre pre pre pre pre pre pre pre pre pre pre pre calculus Re: circle in mathematica [color=#000000]You can use the parametric form, for example in order to draw the circle x^2+y^2=5, Code: ParametricPlot[Sqrt{Cos[t],Sin[t]},{t,0,2Pi}] or in implicit form using the contourplot command Code: ContourPlot[x^2+y^2==5,{x,-3,3},{y,-3,3},Axes->True] .[/color] July 26th, 2012, 06:49 AM   #7
Global Moderator

Joined: Nov 2006
From: UTC -5

Posts: 16,046
Thanks: 938

Math Focus: Number theory, computational mathematics, combinatorics, FOM, symbolic logic, TCS, algorithms
Re: circle in mathematica

Quote:
 Originally Posted by ZardoZ [color=#000000]or in implicit form using the contourplot command Code: ContourPlot[x^2+y^2==5,{x,-3,3},{y,-3,3},Axes->True] .[/color]
Ah! I think that's just what the OP was looking for. Tags circle, mathematica ,
,

,

,

,

,

,

,

,

,

,

,

,

,

# plotting a circle in mathematica

Click on a term to search for related topics.
 Thread Tools Show Printable Version Email this Page Display Modes Linear Mode Switch to Hybrid Mode Switch to Threaded Mode Similar Threads Thread Thread Starter Forum Replies Last Post yeoky Algebra 4 May 3rd, 2014 01:06 AM DANDIS Math Software 7 February 14th, 2012 09:27 AM sivela Math Software 2 April 15th, 2010 03:30 PM carXunderwater Math Software 1 March 4th, 2010 08:12 PM billymac00 Number Theory 5 September 6th, 2009 09:59 PM

 Contact - Home - Forums - Cryptocurrency Forum - Top      