Drawing circles with different distance functions

In summary, in ##\mathbb{R}^2##, a unit circle can be drawn for taxicab distance ##(d_t)##, euclidean distance ##(d_e)##, and max distance ##(d_s)##. The unit circle for euclidean distance is a familiar circle with center at (0,0) and radius 1. For taxicab distance, the unit circle is a square with its diagonals horizontal and vertical. And for max distance, the unit circle is a square with its sides aligned with the axes.
  • #1
Lee33
160
0

Homework Statement



In ##\mathbb{R}^2##, draw a unit circle for taxicab distance ##(d_t)##, euclidean distance ##(d_e)##, and max distance ##(d_s)##.

Homework Equations



##d_e = \sqrt{(x -x_1)-(y-y_1)}##
##d_s = \text{max}\{|x-x_1|,|y-y_1|\}##
##d_t=|x-x_1|+|y-y_1|##

The Attempt at a Solution



Euclidean distance is the most familiar one. It will just be our everyday unit circle.

For taxicab, will the unit circle be a shape of a square?

For max distance I am not so sure about to.
 
Physics news on Phys.org
  • #2
Try a simple example like [itex](x_1, y_1)= (0, 0)[/itex] and the distance is 1.

Then with the Euclidean distance you have [itex]\sqrt{x^2+ y^2}= 1[/itex] which is the same as [itex]x^2+ y^2= 1[/itex]. Yes, that is a circle with center at (0, 0) and radius 1..

With the taxicab metric, that is |x|+ |y|= 1. If x and y are both positive it is x+ y= 1 which is the line segment from (1, 0) to (0, 1). If x is negative and y is positive, it is -x+ y= 1 which is the line segment from (0, 1) to (-1, 0). If x and y are both negative, it is -x- y= 1 which is the line segment from (-1, 0) to (0, -1). Finally, if x is positive and y is negative, it is x- y= 1 which is the line segment from (0, -1) to (1, 0). Yes, that is a square with its diagonals horizontal and vertical.

With the max distance it is max(|x|,|y|)= 1. If x and y are both positive and x< y that is |y|= y= 1 which is the horizontal line segment from (0, 1) to (1, 1). If x and y are both positive and y< x, that is |x|= x= 1 which is that vertical line segment from (1, 0) to (1, 1). You check the other quadrants:

If x is negative and y is positive and x< y ... If y< x ...
 
  • Like
Likes 1 person
  • #3
Thanks for the help!
 

1. What is a distance function in relation to drawing circles?

A distance function is a mathematical formula that calculates the distance between two points on a graph. In the context of drawing circles, it is used to define the shape and size of the circle based on the distance of each point from the center.

2. How does changing the distance function affect the shape of the circle?

Changing the distance function can alter the shape of the circle by changing the way the distance is calculated between points. For example, using a squared distance function will result in a more angular or elliptical shape compared to a linear distance function which will create a perfect circular shape.

3. Can distance functions be used to draw circles of different sizes?

Yes, distance functions can be used to draw circles of various sizes by adjusting the parameters in the formula. For instance, increasing the distance between the points or changing the center point will result in a larger circle, while decreasing the distance or changing the center point will create a smaller circle.

4. Are there any real-world applications of drawing circles with different distance functions?

Yes, distance functions are commonly used in computer graphics and image processing to create smooth and precise circles. They are also used in navigation systems and mapping tools to calculate distances between locations and plot them on a map.

5. How can I determine which distance function to use when drawing circles?

The choice of distance function depends on the desired outcome. A linear distance function is best for creating perfect circles, while squared distance functions can be used for more intricate shapes. It is important to experiment and choose the function that best suits the specific application.

Similar threads

  • Topology and Analysis
Replies
4
Views
1K
  • Calculus and Beyond Homework Help
Replies
2
Views
1K
  • Calculus and Beyond Homework Help
Replies
15
Views
1K
Replies
3
Views
1K
Replies
7
Views
3K
  • Calculus and Beyond Homework Help
Replies
14
Views
2K
  • Set Theory, Logic, Probability, Statistics
Replies
1
Views
1K
  • Set Theory, Logic, Probability, Statistics
Replies
1
Views
742
  • Differential Equations
Replies
1
Views
1K
  • Calculus and Beyond Homework Help
Replies
12
Views
2K
Back
Top