Approximating Line Intersection Equation with Maple

Click For Summary
SUMMARY

The discussion focuses on approximating the intersection of two lines in 3D space using Maple. The user, Steven, defines points C and D in 3D coordinates and seeks to determine the coordinates Ai and Aj of a third point A, given specific distances from C and D. Using Maple's solving capabilities, he successfully derives the equations but ends up with complex RootOf expressions. Ultimately, he simplifies the solution into a lengthy Excel formula that effectively calculates Ai and Aj.

PREREQUISITES
  • Understanding of 3D coordinate geometry
  • Familiarity with Maple software for symbolic computation
  • Basic algebra skills for manipulating equations
  • Knowledge of Excel for implementing formulas
NEXT STEPS
  • Explore advanced features of Maple for simplifying equations
  • Learn about distance formulas in 3D geometry
  • Investigate optimization techniques for Excel formulas
  • Study the concept of RootOf expressions in algebra
USEFUL FOR

Mathematicians, engineers, and data analysts who require solutions for 3D geometric problems and those looking to enhance their skills in Maple and Excel for mathematical modeling.

Verox
Messages
3
Reaction score
0
I'm having a hard time creating a tidy equation to solve this seemingly simple problem.

I have two points in standard 3D cordinate space, we'll call them C and D to be consistent with my work. The location of these points is given by (Ci,Cj,Ck) and (Di,Dj,Dk).

I then have a third point, A, given by (Ai, Aj, (Ak-x)). The distance between point C and A is equal to constC, and the distance between D and A is equal to constD.

Given C, D, constC, constD, x, and Ak, I need to solve for Ai and Aj.

Well the first thing I did was create two equations that set the magnitude of AC and AD equal to constC and constD. Using Maple to solve for Ai and Aj gives me an entire screen of numbers full of RootOf expressions. If I give Maple some real numbers for the given variables then it quickly outputs the two possible solutions for Ai and Aj, which I've verified to be correct.

Here is my Maple code.

C_i:=C_i:
Cj:=Cj:
Ck:=Ck:
Di:=Di:
Dj:=Dj:
Dk:=Dk:
Ak:=Ak:
x:=x:
constC:=constC:
constD:=constD:

solve({(sqrt((Ai-C_i)^2+(Aj-Cj)^2+((Ak+x)-Ck)^2))=constC,(sqrt((Ai-Di)^2+(Aj-Dj)^2+((Ak+x)-Dk)^2))=constD},{Ai,Aj});



I'm looking for a compact equation (that I can insert into my excel spreadsheet) that approximates Ai and Aj. I am still learning Maple and my math skills are somewhat limited. Any help would be appreciated.

Thanks,
- Steven
 
Last edited:
Physics news on Phys.org
Any ideas? If someone could just point me in the right direction that would be great.

What type of equation would this be called? I've tried to find similar problems, but no luck.
 
Well, I was able to solve this equation. It ended up being a 4000+ character formula in excel. Just a bunch of brute force algebra. Works like a charm!
 

Similar threads

  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 9 ·
Replies
9
Views
6K
  • · Replies 3 ·
Replies
3
Views
2K
Replies
3
Views
2K
Replies
5
Views
3K
  • · Replies 3 ·
Replies
3
Views
7K
  • · Replies 2 ·
Replies
2
Views
926
  • · Replies 4 ·
Replies
4
Views
2K
Replies
2
Views
3K
Replies
7
Views
2K