Can I Use Graphics Programs to Visualize Coordinates Inside a Ball?

  • Context: Undergrad 
  • Thread starter Thread starter bogie
  • Start date Start date
  • Tags Tags
    Ball Coordinates
Click For Summary

Discussion Overview

The discussion centers on the visualization of coordinates within a ball, defined as the interior of a sphere. Participants explore various coordinate systems suitable for describing points inside the ball and seek graphics programs that can facilitate this visualization.

Discussion Character

  • Exploratory
  • Technical explanation
  • Conceptual clarification
  • Debate/contested
  • Mathematical reasoning
  • Experimental/applied

Main Points Raised

  • Some participants propose using polar or Cartesian coordinates, with the origin at the center of the sphere, to describe points within the ball.
  • Others mention spherical coordinates as a suitable system for defining points inside the ball.
  • A participant provides the mathematical equations for a sphere and a ball, indicating the relationship between the center and the radius.
  • There is a question regarding the relationship between the coordinates (x, y, z) and the center coordinates (a, b, c) in the context of a provided graphic.
  • One participant shares a drawing to clarify the concept, indicating the center of the sphere and its radius.
  • Another participant suggests using programming environments like VPython or Gnuplot to visualize points in 3D, along with links to interactive tutorials on spherical coordinates.
  • A later reply discusses the potential for visualizing how points change as the radius varies, introducing the idea of proportional expansion of coordinates.

Areas of Agreement / Disagreement

Participants express various preferences for coordinate systems and visualization methods, but no consensus is reached on a single approach or program. The discussion remains open with multiple competing views on the best methods to visualize coordinates inside a ball.

Contextual Notes

Participants reference specific mathematical definitions and visual aids, but there is no resolution on the best practices for implementing these visualizations or the assumptions underlying the coordinate systems discussed.

bogie
Messages
33
Reaction score
0
A ball can be defined as the inside of a sphere. It is made up of all points inside the sphere. Is there a customary way to describe the location of points in a ball, i.e. a coordinate system to define each point?

Is there a graphics program that can be used that let's you input the coordinates and visualize the defined points graphically?
 
Mathematics news on Phys.org
Either polar or cartesian coordinates, with the origin at the center would work.
 
yes, we call them spherical coordinates.
where do they get these names from?! (-:
 
Last edited:
bogie said:
A ball can be defined as the inside of a sphere. It is made up of all points inside the sphere. Is there a customary way to describe the location of points in a ball, i.e. a coordinate system to define each point?

Is there a graphics program that can be used that let's you input the coordinates and visualize the defined points graphically?

The equation of a sphere, having the radius R, and center (a, b, c) is:
[tex](x - a) ^ 2 + (y - b) ^ 2 + (z - c) ^ 2 = R ^ 2[/tex]
Now, a ball is a collection of the points whose distances from the center are less than or equal to R, so, the ball has the equation:
[tex](x - a) ^ 2 + (y - b) ^ 2 + (z - c) ^ 2 \leq R ^ 2[/tex]
 
VietDao29 said:
The equation of a sphere, having the radius R, and center (a, b, c) is:
[tex](x - a) ^ 2 + (y - b) ^ 2 + (z - c) ^ 2 = R ^ 2[/tex]
Now, a ball is a collection of the points whose distances from the center are less than or equal to R, so, the ball has the equation:
[tex](x - a) ^ 2 + (y - b) ^ 2 + (z - c) ^ 2 \leq R ^ 2[/tex]
I found this graphic: http://mathworld.wolfram.com/SphericalCoordinates.html

It is for defining points on a sphere, but I can see how the same coordinate system would be used to define the location of points in the ball.

Are your x, y and z the same as the x axis, y-axis and z axis in the graphic?

How do you’re a, b and c relate to the graphic?
 
(a,b,c) is the centre of the sphere, in the link youv'e given it's (0,0,0).
 
Instead of having the center at (0, 0, 0), my sphere has its center at (a, b, c), you can look at the attachment below. Srry, if my drawing is just so bad... :frown:
Sphere.jpg

The red little dot is the center having the co-ordinate (a, b, c).
The sphere is green.
And R is its radius.
Is it clearer now? :)
 
Last edited:
Yes. Your drawing is very good.

Using your drawing can you give me an example of how your formulas work, replacing the xyz and abc with numbers that relate to the drawing? Or do your formulas represent a general definition of a sphere and are not intended to describe a specific point on or in the sphere.
 
  • #10
If want to try a simple programming environment, you might try writing a simple program using http://vpython.org/ and the formulas above to visualize these points in 3D.

If you don't want to write a program [which would be very instructive for you], you can try http://www.gnuplot.info/ .

Some useful interactive visualization, try this flash-based tutorial on spherical coordinates
http://mathdl.maa.org/mathDL/3/?pa=content&sa=viewDocument&nodeId=614
 
Last edited by a moderator:
  • #11
robphy said:
If want to try a simple programming environment, you might try writing a simple program using http://vpython.org/ and the formulas above to visualize these points in 3D.

If you don't want to write a program [which would be very instructive for you], you can try http://www.gnuplot.info/ .
Thank you for the helpful links.

I am over 60 :) and was writing programs in basic in the seventies. I once spent a few weeks writing an accounting general ledger program. It worked great but then Lotus came out with 123 and I programmed the same procedures in Lotus in one day. I am afraid that my programming career ended there. I have dabbled in visual basic but my skills never got fully developed.
Some useful interactive visualization, try this flash-based tutorial on spherical coordinates
http://mathdl.maa.org/mathDL/3/?pa=content&sa=viewDocument&nodeId=614
This link is beautiful. It gives me the tool I need to show the change in location in the ball with each change in rho, and each change in rho can be determined by the change in r if it is given that the length of rho varies with changes in r.

I was hoping to input a series of points and watch how those points move as I change r under the rule that a % increase in r will translate to the same % increase in each rho for each point (I refer to it as proportional expansion).
 
Last edited by a moderator:

Similar threads

  • · Replies 2 ·
Replies
2
Views
2K
Replies
1
Views
2K
  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 13 ·
Replies
13
Views
3K
  • · Replies 8 ·
Replies
8
Views
2K
  • · Replies 10 ·
Replies
10
Views
3K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K
Replies
10
Views
5K
  • · Replies 22 ·
Replies
22
Views
2K