473,471 Members | 4,629 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

equation of cone intersection

Hi,

How can I program this math. equation:
a1*n1 + a2*n2 + a3*n3 = cos(alpha1)
b1*n1 + b2*n2 + b3*n3 = cos(alpha2)
n1^2 + n2^2 + n3^2 = 1

The problem is, that when you solve for n1, n2 and n3 (anything else
is known) you get really huge results.
So is there maybe another way to compute this?
BTW:
These equations describe 0, 1, or 2 lines when two cones with the same
origin (cone ends) intersects. (Maybe anyone knows another way)

Thanks in advance,

S. Nurbe
Jul 22 '05 #1
2 3359

"S. Nurbe" <re*******@yahoo.de> wrote in message
news:9a**************************@posting.google.c om...
Hi,

How can I program this math. equation:
a1*n1 + a2*n2 + a3*n3 = cos(alpha1)
b1*n1 + b2*n2 + b3*n3 = cos(alpha2)
n1^2 + n2^2 + n3^2 = 1

The problem is, that when you solve for n1, n2 and n3 (anything else
is known) you get really huge results.
So is there maybe another way to compute this?
BTW:
These equations describe 0, 1, or 2 lines when two cones with the same
origin (cone ends) intersects. (Maybe anyone knows another way)

Thanks in advance,

S. Nurbe


How are you computing this now? And what do you mean by "huge results"?
The third formula above pretty much restricts the values to all be under 1,
doesn't it? If the sum of their squares is one, how can they be large
numbers? Perhaps if you show your current code, and your current results
for some given input values, then someone here can show you if you've made a
coding error.

-Howard
Jul 22 '05 #2
S. Nurbe wrote:
How can I program this math. equation:
a1*n1 + a2*n2 + a3*n3 = cos(alpha1)
b1*n1 + b2*n2 + b3*n3 = cos(alpha2)
n1^2 + n2^2 + n3^2 = 1

The problem is, that when you solve for n1, n2 and n3 (anything else
is known) you get really huge results.
What do you mean by "huge results"?
So is there maybe another way to compute this?
Another way compared to what way?
BTW:
These equations describe 0, 1, or 2 lines when two cones with the same
origin (cone ends) intersects. (Maybe anyone knows another way)


AFAICT, from eq 1 and eq 2 you can express n2 in terms of n1 and n3 in
terms of n1. Once you substitute those expressions into eq3 you get
a quadratic equation that is very easy to solve. Then substitute the
result (n1) back to get n2 and n3. That's like, ninth grade math...

Your problem doesn't seem like a language problem. Perhaps you need to
post to sci.math.*...

V
Jul 22 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Antoine Logean | last post by:
Hi, What is the easiest way to get the intersection of two strings in python (a kind a "and" operator) ? ex: string_1 =...
17
by: Gordon Williams | last post by:
Hi, I have to lists that I need to find the common numbers (2nd rounded to nearest integral) and I am wondering if there is a more efficient way of doing it. >>> a= >>> b= >>> ...
4
by: Sebastian Cohen S | last post by:
Hello, I am new to SQL and currently using Access 2003 and need a little help on the following. I have two queries each contains one column formed with a string that is very similar (only...
6
by: kimos | last post by:
hi all, how to calculate the intersection of 2 rectangle a rectangle is the following: Rectangle makeRectangle (Point lowerLeft, Point upperRight) { Rectangle r;
1
by: S. Nurbe | last post by:
Hi, How can I program this math. equation: a1*n1 + a2*n2 + a3*n3 = cos(alpha1) b1*n1 + b2*n2 + b3*n3 = cos(alpha2) n1^2 + n2^2 + n3^2 = 1 The problem is, that when you solve for n1, n2 and...
2
by: mkppk | last post by:
I have kind of strange change I'd like to make to the sets.Set() intersection() method.. Normally, intersection would return items in both s1 and s2 like with something like this: ...
6
by: Trev17 | last post by:
Hello, I am new to C++ and i have tried for several hours to make a program my teacher has given me as a lab. Here is the Lab question: the roots of the quadratic equation ax^2 + bx + c = 0, a...
7
by: mturner64 | last post by:
I need the formula to calculate the girth of a cone. I am not having any luck. Anyone know the formula? Thanks, Mike
10
by: Constantine AI | last post by:
Hi i am having a little problem with an equation function that was created from all your help previously. The function works fine itself but with a small glitch within it. Here is the function...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.