My Math Forum  

Go Back   My Math Forum > Math Forums > Math Software

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


Reply
 
LinkBack Thread Tools Display Modes
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.
kapital is offline  
 
July 23rd, 2012, 02:34 AM   #2
Senior Member
 
MarkFL's Avatar
 
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.
MarkFL is offline  
July 23rd, 2012, 05:29 AM   #3
Global Moderator
 
CRGreathouse's Avatar
 
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.
CRGreathouse is offline  
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)?
kapital is offline  
July 23rd, 2012, 05:58 AM   #5
Global Moderator
 
CRGreathouse's Avatar
 
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.
CRGreathouse is offline  
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[5]{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]
ZardoZ is offline  
July 26th, 2012, 06:49 AM   #7
Global Moderator
 
CRGreathouse's Avatar
 
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.
CRGreathouse is offline  
Reply

  My Math Forum > Math Forums > Math Software

Tags
circle, mathematica



Search tags for this page
Click on a term to search for related topics.
Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Area enclosed by a semi-circle and a quarter circle yeoky Algebra 4 May 3rd, 2014 01:06 AM
mathematica DANDIS Math Software 7 February 14th, 2012 09:27 AM
Mathematica sivela Math Software 2 April 15th, 2010 03:30 PM
Mathematica Help carXunderwater Math Software 1 March 4th, 2010 08:12 PM
Mathematica billymac00 Number Theory 5 September 6th, 2009 09:59 PM





Copyright © 2019 My Math Forum. All rights reserved.