1865 views|7 replies

48

Posts

0

Resources
The OP
 

Mathematical formula solving [Copy link]

A point p (x, y, z) in space coordinates is L from three other points p1 (x1, y1, z1), p2 (x2, y2, z2) and p3 (x3, y3, z3). Find the coordinates of point p. 1) Derive the solution formula 2) Implement it in high-level programming languages such as c/c++, python, etc. PS: I remember it was high school math content, I have almost forgotten it:) Point p should have two points that can be determined.
This post is from Programming Basics

Latest reply

Matlab solves the following equation, no solution [x,y,z]=solve('sqrt((x-x1)^2+(y-y1)^2+(z-z1)^2)=L','sqrt((x-x2)^ 2+(y-y2)^2+(z-z2)^2)=L','sqrt((x-x3)^2+(y-y3)^2+(z-z3)^2)= L','x,y,z')   Details Published on 2020-1-7 23:57
 

2w

Posts

0

Resources
2
 

"Point p should have two points that can be determined."

Not necessarily. This problem may have two solutions, one solution, or no solution.

This post is from Programming Basics

Comments

Point p is on the vertical line passing through the center of the triangle formed by p1, p2, and p3. If it is exactly in the center of the triangle, what is the situation where there is only one solution and no solution?  Details Published on 2020-1-6 20:38
 
 
 

2w

Posts

0

Resources
3
 

This is the content of the analytic geometry course. This question is actually about finding the coordinates (x, y, z) of point p. You can use the distance formula between two points to find it.

This post is from Programming Basics
 
 
 

48

Posts

0

Resources
4
 
maychang posted on 2020-1-6 19:13 "Point p should have two points that can be determined." Not necessarily. This problem may have two solutions, one solution, or no solution.
Point p is on the vertical line passing through the center of the triangle formed by p1, p2, and p3. If it is exactly in the center of the triangle, what is the situation where there is one solution and no solution?
This post is from Programming Basics

Comments

The three points p1p2p3 define a circle. The distance L from point p to the three points p1p2p3 is given in the question. If L is less than the radius of the circle defined by the three points p1p2p3, then there is no solution. If L is equal to the radius of the circle, then there is a unique solution. If L is greater than the radius of the circle, then there are two solutions.  Details Published on 2020-1-7 08:30
The three points p1p2p3 define a circle. The distance L from point p to the three points p1p2p3 is given in the question. If L is less than the radius of the circle defined by the three points p1p2p3, then there is no solution. If L is equal to the radius of the circle, then there is a unique solution. If L is greater than the radius of the circle, then there are two solutions.  Details Published on 2020-1-7 08:23
 
 
 

48

Posts

0

Resources
5
 
maychang published on 2020-1-6 19:15 This is the content of the analytic geometry course. This question is actually to find the coordinates of point p (x, y, z). You can use the distance formula between two points to find it.
Based on the distance between two points (p, p1), I can list the formula (x-x1)^2 + (y-y1)^2+(z-z1)^2=L^2. There are 3 sets of three-variable quadratic equations. But I can't solve them
This post is from Programming Basics
 
 
 

2w

Posts

0

Resources
6
 
aallian posted on 2020-1-6 20:38 Point p is on the vertical line passing through the center of the triangle formed by p1, p2, and p3. If it is exactly in the center of the triangle, what is the situation where there is only one solution and no solution?

The three points p1p2p3 define a circle. The distance L from point p to the three points p1p2p3 is given in the question. If L is less than the radius of the circle defined by the three points p1p2p3, then there is no solution. If L is equal to the radius of the circle, then there is a unique solution. If L is greater than the radius of the circle, then there are two solutions.

This post is from Programming Basics
 
 
 

2w

Posts

0

Resources
7
 
aallian posted on 2020-1-6 20:38 Point p is on the vertical line passing through the center of the triangle formed by p1, p2, and p3. If it is exactly in the center of the triangle, what is the situation where there is only one solution and no solution?

The three points p1p2p3 determine a circle. In the second solution, point p is at the vertex of a regular cone with this circle as its base. In the first solution, point p is at the center of this circle. There is no solution because L is too small and point p "cannot reach" the three points p1p2p3.

This post is from Programming Basics
 
 
 

9702

Posts

24

Resources
8
 

Matlab solves the following equation, no solution

[x,y,z]=solve('sqrt((x-x1)^2+(y-y1)^2+(z-z1)^2)=L','sqrt((x-x2)^ 2+(y-y2)^2+(z-z2)^2)=L','sqrt((x-x3)^2+(y-y3)^2+(z-z3)^2)= L','x,y,z')

This post is from Programming Basics
 
Personal signature虾扯蛋,蛋扯虾,虾扯蛋扯虾
 
 

Guess Your Favourite
Just looking around
Find a datasheet?

EEWorld Datasheet Technical Support

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京B2-20211791 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号
快速回复 返回顶部 Return list