Skip to main content
gamedev.net
🔒 Locked

Mathmatical Notation

Started by DeltaVee Jan 11, 2002 at 7:36 AM 8 replies 1.1k views
Original Post
DeltaVee
DeltaVee
Okay Dokey... I''m working my way through ''Elementary Linear Algebra'', with emphasis on Vectors in 2D and 3D space, in the attempt to understand all the code I have ''lifted'' over the past couple of years, and to reduce the number of dumb posts from me. Okay I know that ||v|| means normalise, but what about |v| ? as in : |ax0 + by0 + cz0 + d| The text book all of a sudden throws it in without an explanation. Any help would be appreciated. P.S. Just made me think, wouldn''t a glossary of symbolic notation be helpful for math newbies such as I? D.V. Carpe Diem
D.V.Carpe Die<FONT C
DeltaVee
DeltaVee
Once again GDNet comes up trumps.

Thanks anons

D.V.

Carpe Diem


Edited by - DeltaVee on January 11, 2002 9:02:20 AM
D.V.Carpe Die<FONT C
Tjoppen
Tjoppen
Anonymous Poster...You where rigth both times...

|A| in any dimension sums up the square of the axis, and then takes the squareroot of them, to get the magnitude...

However, in 1D, it just happens the sqrt(a^2) is allways positive, since squared non-imaginary numbers allways >= 0
delete this;
grhodes_at_work
grhodes_at_work
A little advanced mathematical notation stuff to confuse you all. In higher math (e.g., graduate school level math), the bar |?| or (more appropriate) double bar ||?|| notation simply indicates that you should calculate a "norm" of the item inside. For example,

B = |A|

means B equals a "norm" of A. It just happens that when A and B are vectors the most common "norm" is the Euclidian norm, the length of the vector A, which is calculated using the familiar formula:

B = Euclidian norm of A = sqrt(A.x2+A.y2+A.z2)

The Euclidian norm is sometimes called the "2-norm". That is because we add the components of A to the "2" power (squared) and then take the 1 over 2 (1/2 or sqrt) root of that sum. There is another norm called the "1-norm" and it is simply:

B = 1-norm of A = abs(A.x) + abs(A.y) + abs(A.z)

where abs() is absolute value (or same as |?| of a scalar)

Its computed kind of the same way as the 2-norm. Add the absolute value of components of A raised to the "1" power, and then take the 1 over 1 (=1) root of that sum. The root doesn''t do anything and you''re just left with the sum.

The 1-norm is cheaper to calculate than the 2-norm, and in some areas of math and geometry it is useful. There are really a whole bunch of different norms that are sometimes useful. The Euclidian norm, 1-norm, and the infinity-norm are perhaps the most common.

When you''re dealing with norms in higher math, it is customary to put a subscript outside of the |?| to indicate exactly which norm is desired, for example:

B = |A|2

Its also a bit more customary to use the double bars:

B = ||A||2

So, just a little trivia for you, .

Graham Rhodes
Senior Scientist
Applied Research Associates, Inc.
Graham Rhodes Moderator, Math & Physics forum @ gamedev.net
Crazy_Vasey
Crazy_Vasey
Doesn''t the |whatever| mean modulus?

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.