Questions tagged [geometry]

Questions on the application of Mathematica to geometric problems. You might also consider adding the [graphics] tag, if appropriate.

Filter by
Sorted by
Tagged with
0 votes
1 answer
97 views

Is there a better method and more efficient way to determine the type of triangle based on the coordinates of its three vertices?

...
csn899's user avatar
  • 4,179
5 votes
2 answers
124 views

How to select right triangles and non right triangles given their coordinates

I have a list of triangle coordinates in 2D-space: ...
Thuy Nguyen's user avatar
  • 1,065
0 votes
0 answers
29 views

Covariant derivative of a Riemann tensor

I'm trying to calculate the covariant derivative of a Riemann tensor, and I'm using the following way, but there is some problem in my calculations because my calculations do not match with the ...
MMS's user avatar
  • 87
7 votes
3 answers
500 views

Fitting a disk in a non-polygonal region

...
Syed's user avatar
  • 54.1k
2 votes
1 answer
77 views

The intersection of the same overlapping rectangles

A math challenge had the following statement: [[OVERLAP -Three identical rectangular frames are placed one on top of the other, as Shown (A frame on the left tilted over the center frame and ...
Rubens Vilhena Fonseca's user avatar
0 votes
0 answers
32 views

How to merge multiple ellipse of radii R [closed]

Let us say that I have a point at (0,0) and I have 4 radii values for ellipses. How can I merge them together to form a single ellipse from the centre (0,0).
sneha_jerin's user avatar
3 votes
3 answers
289 views

Parabola from a focus and a directrix

The code below is an attempt to obtain the graph of a parabola from two pieces of information: a focus and a directrix. I am not able to get the correct graphical shape of the parabola. I appreciate ...
Rubens Vilhena Fonseca's user avatar
9 votes
3 answers
1k views

Taxicab Geometry

According to taxicab geometry, there are 1226 possible paths from A(2,5) to B(7,9), all with a distance of 9 units, |2-7|+|9-5|=9. I wanted to write a code where I could be obtaining the plots of some ...
Rubens Vilhena Fonseca's user avatar
1 vote
0 answers
74 views

Solving the expression of tortoise coordinate differential equation in Mathematica

I want to solve the differential equation of the form $\dfrac{dr_*}{dr} = \dfrac{1}{\left(1-\dfrac{2M}{r}\right)}$ under the boundary conditions $\lim_{r \rightarrow 2M}r_*(r) \rightarrow - \infty$ ...
darkphysics's user avatar
3 votes
3 answers
198 views

Finite Differences:

I am having difficulty implementing finite differences in the correct columns of my code. ...
Rubens Vilhena Fonseca's user avatar
2 votes
0 answers
36 views

GeoProjection used in area computation of relatively small regions

Let's define a relatively small region via GeoPosition as follows. pos = GeoPosition[{{48, 9}, {48.0001, 9}, {48.0001, 9.0001}, {48, 9.0001}}, "WGS84"] ...
Math Gaudium's user avatar
3 votes
2 answers
107 views

Calculating vertical displacement to intercept the perimeter of the circle after a horizontal shift

I can't come upon a solution for the question below. The background of the actual work is not interesting for the question, so l won't explain why I need the solution. I would be very thankful if ...
Darius E.'s user avatar
-1 votes
2 answers
200 views

How to solve this geometric problem with Mathematica?

I try to solve the following problem, making use of 14.0 on Windows 10 Let a triangle $\Delta$ (a contour with its interior) be chosen in the unit square $S$. To prove that the closure of the ...
user64494's user avatar
  • 26.4k
2 votes
2 answers
113 views

How to get angles along a line?

What is the best way to get the angles along a line? I have tried this for example: ...
flinty's user avatar
  • 25.3k
6 votes
1 answer
170 views

How to get properties from a Polygon object?

We can get polygons by this code: polys = (SeedRandom[#]; Polygon[RandomInteger[20, {4, 2}]]) & /@ Range[6] How to get those properties? When I dig ...
yode's user avatar
  • 26.7k
6 votes
1 answer
403 views

Finding an ellipse of minimum area that encloses a set of points

Is there a built-in function or set of functions in Mathematica that can take a set of points in the x-y plane and determine the ellipse of minimum area that contains all of the points? I am sure ...
BioPhysicist's user avatar
  • 1,124
1 vote
1 answer
93 views

How can I find distance from a point to a straight line by using projection of the point to the line?

I have a point A(1,2,3) and a line having parametric equation x = 1 + 2t, y = 3t, z = -4+6t. I want to find distance from ...
minhthien_2016's user avatar
6 votes
2 answers
390 views

What is simpler way to find projection of a point on a plane?

This is my code to find the coordinate of projection of the point pA = {2, 3, 5} on the plane -284 + 14 x + 2 y + 5 z == 0. <...
minhthien_2016's user avatar
4 votes
3 answers
196 views

Solving where an Interpolating Function crosses a Region Boundary

I have a function which takes in a parameter t and outputs a point {x, y}, which together describe a continuous and smooth curve....
ScienceSnake's user avatar
-2 votes
2 answers
54 views

Coordinates of two points near a circle [closed]

Could someone help me find the locations of the points A and B? Let me know if you need more information. Thanks ;)
value1's user avatar
  • 7
1 vote
1 answer
84 views

Is this a bug in RegionEqual or something else?

Is this a bug or I am missing something again? I ran the following code on a fresh kernel and each time it outputs randomly different result consisting of all combination ...
azerbajdzan's user avatar
  • 17.1k
1 vote
1 answer
59 views

Is this a bug in RegionEqual?

$Version "13.0.1 for Microsoft Windows (64-bit) (January 28, 2022)" Is this a bug or I am missing something? ...
azerbajdzan's user avatar
  • 17.1k
2 votes
1 answer
153 views

Speeding up minimization problem related to a minimal surface

I am trying to find the minimum of the function $$f(x)=\int_0^1(1+t^x)\sqrt{1+x^2 t^{2(x-1)}}dt$$ which arises from trying to minimize the surface area of a function rotated around the $x$ axis. Here ...
Kamal Saleh's user avatar
3 votes
2 answers
206 views

How to solve a geometric problem about a triangle using GeometricSolveValues?

I try to solve not so difficult geometric problem from an exercise book on elementary math with 14.0 on Windows 10: Let a triangle $\triangle ABC$ be given and the area of $\triangle ABC$ be equal to ...
user64494's user avatar
  • 26.4k
0 votes
0 answers
72 views

Volume of self-intersecting polyhedra

Is there a method to calculate the volume of self-intersecting polyhedra with Wolfram? I did the calculations by hand taking the coordinates from this site for some of them (considering $l=1$): $\...
Math Attack's user avatar
3 votes
3 answers
127 views

Integrating a function over a region defined as the epsilon-neighborhood of a triangle

I would like to integrate the function f(x,y) = x^2 + y^2 over the epsilon-neighborhood of the triangle {{-1, 0}, {0, 1}, {1, 0}}. By epsilon-neighborhood, I mean the set of points which are closer to ...
Zsombor's user avatar
  • 163
1 vote
1 answer
103 views

Fit a point that defines a 90° angle

I'm trying to come up with a fit that will give me x,y coordinates of a point, that best fit in 2 slopes, the 2 slopes intercepting at 90°. At the moment I fit individually 2 lines to a 2 sets of ...
A postdoc's user avatar
  • 159
9 votes
2 answers
275 views

Envelopment of space curves

In their answers to Creating sculptural forms The respondents showed how to envelop space curves with a net-like structure. I used kglr's answer to create the following function: ...
eldo's user avatar
  • 70.3k
2 votes
1 answer
117 views

How can I compute the maximum value of a ConditionalExpression?

If we use GeometricSolveValues in version 14.0, we can use this code to get a ConditionalExpression expr: ...
yode's user avatar
  • 26.7k
8 votes
3 answers
138 views

What is another way to write the equation in the form $A x + B y + C z + D = 0$ where A > 0 and GCD[A,B,C,D]=1?

I am trying write the equation of the plane passing through a point $A(x0, y0, z0)$ and take vector $w(A,B,C)$ as a normal vector. The equation has the form $$A(x-x0) + B(y-y0) + C(z-z0)=0.$$ I would ...
minhthien_2016's user avatar
4 votes
1 answer
90 views

Residual triangles after incircle placement

After calculating the incircle for a triangle, I would like to get the vertex coordinates of the three left-over triangular regions. The additional constraint is that the angle bisectors are at right ...
Syed's user avatar
  • 54.1k
4 votes
1 answer
123 views

Fourier Coefficients of Polygon Functions [closed]

Polygon function for a regular pentagon sketched and defined below: Fourier Coefficients are required for polygon functions with sharp discontinuous vertices; $n$ can be either integer or real. In ...
Narasimham's user avatar
  • 3,160
9 votes
3 answers
537 views

Painted faces of n×n×n cube

Given a 3×3×3 cube made of 27 unit blocks. If the cube is painted, then each of the blocks has 3 of its faces painted, a given block may have 0, 1, 2 , or 3 of its faces painted. I want to mark ...
matrix42's user avatar
  • 6,996
5 votes
2 answers
526 views

Wrong solution in a geometry problem

I try to solve the simple problem of finding (integer numbers) for the sides of a triangle when its perimeter is 90 and its area is twice, three times or four times this number. My approach is this: <...
Nitra's user avatar
  • 347
3 votes
1 answer
146 views

How do I find all the nets of a polyhedron?

The following will show me a single example net of a polyhedron PolyhedronData["Dodecahedron", "Net"] And ...
Peter Olson's user avatar
3 votes
3 answers
284 views

Gaussian curvature of a point cloud surface

Having a set of triplets like dsurf={{x1,y1,z1},{x2,y2,z2},...} whose interpolation defines an open surface (as shown by ...
Daniel Castro's user avatar
2 votes
2 answers
241 views

The center of mass of a semiellipsoid

I am trying to find the center of mass of a semiellipsoid using cylindrical coordinates. r^2/a^2+z^2/b^2 < 1, z < 0 the density = 1. I know that the center of mass is (1/M int,int,int rcos(theta)...
Mike Gotier's user avatar
0 votes
2 answers
101 views

How to build the following region?

Consider a 3D figure defined by the dependence $\Delta x(z),\Delta y(z)$. One example is a pyramidal frustum, for which $\Delta x, \Delta y$ are linear functions of $z$, and $z$ lies inside the ...
John Taylor's user avatar
  • 5,733
1 vote
1 answer
54 views

Leading significant digits

Given that the initial area in a Sierpinski triangle is A_0 and the subsequent areas $$(A_n) =A_0 (3/4)^n$$ , what is the formula to calculate the leading ...
Rubens Vilhena Fonseca's user avatar
3 votes
2 answers
199 views

How to get a RegionIntersection output as a primitive instead of a BooleanRegion?

line = ParametricRegion[{2 + 3 t, -1 + t, 3 - 2 t}, {t}]; plane = ImplicitRegion[2 x + 3 y - z == 9, {x, y, z}]; r3 = RegionIntersection[line, plane] ...
Syed's user avatar
  • 54.1k
1 vote
2 answers
128 views

What are some quick methods for calculating hyperbolic equations?

Given that the hyperbola passes through three of the four points (m1, m2, m3, m4), find the equation for the hyperbola These four points are like this ...
csn899's user avatar
  • 4,179
4 votes
3 answers
170 views

Problem with FindGeometricTransform and NMinimize

I'm interested in Centroidal Voronoi tessellation. Here are two examples of unit disk tessellations: They are the same with respect to rotation. Recently, I've found ...
lesobrod's user avatar
  • 1,667
3 votes
2 answers
383 views

How to draw the trajectory of the circumscribed rectangle of an ellipse and determine the area range of the rectangle?

The equation for a known ellipse is: x^2/4 + y^2/3 == 1 The circumscribed rectangle of an ellipse, where the lines on all four sides of the rectangle are tangent ...
csn899's user avatar
  • 4,179
0 votes
0 answers
64 views

A geometric application of Benford's law [duplicate]

I would like some help solving the following problem using Mathematica: Show that, no matter what the initial area of an equilateral triangle is, the sequence of areas (painted in black) of the ...
Rubens Vilhena Fonseca's user avatar
4 votes
5 answers
337 views

Most concise code for tangent and normal line of implicit algebraic curve

Can you make the code for tangent line and normal line of implicit algebraic curve cu more concise than mine? The code for tangent line at ...
azerbajdzan's user avatar
  • 17.1k
1 vote
0 answers
54 views

SameTest for arrays of points

I need to gather arrays of points by some intuitive SameTest, so for some tolerance the next arrays will be treated as the same: Next code looks like suitable for ...
lesobrod's user avatar
  • 1,667
0 votes
1 answer
101 views

How to force Wolfram solve the ODE with respect to h[s]?

I have a problem with the DSolve operator. It just gives me the initial ODE as an answer, however, obviously, I need to find the answer h[s] as a function of f[s] and its powers (or whatever else). It ...
Denis D. Bavrin's user avatar
0 votes
1 answer
83 views

How to reduct the terms of differential equation?

How can one bring the terms of a differential equation below to a standard form with coefficients before h[s], h'[s], h''[s] and their powers? Or, better, can someone help me with solving it with ...
Denis D. Bavrin's user avatar
2 votes
0 answers
65 views

"RegularHyperbolicTilingGraph" Does Not Work Properly [closed]

I am trying to draw regular hyperbolic tesselations using the "RegularHyperbolicTilingGraph" function on Mathematica 13. Here is the introduction of this function on the repository: https://...
Tianyi Wang's user avatar
3 votes
4 answers
457 views

How can I deduce the distance formula from a point to a straight line?

Consider: Clear["Global`*"] reg = ImplicitRegion[a x + b y + c == 0, {x, y}] pt = {x0, y0} RegionDistance[reg, pt] The distance formula from a point to a ...
csn899's user avatar
  • 4,179

1
2 3 4 5
18