Mathmatical Notation
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
|x| means the absolute value of... or in programmers term
if (x<0) x=-x;
Billy - BillyB@mrsnj.com
if (x<0) x=-x;
Billy - BillyB@mrsnj.com
Once again GDNet comes up trumps.
Thanks anons
D.V.
Carpe Diem
Edited by - DeltaVee on January 11, 2002 9:02:20 AM
Thanks anons
D.V.
Carpe Diem
Edited by - DeltaVee on January 11, 2002 9:02:20 AM
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
|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
Oops, my bad :o) I forgot we were working with more than 1d, Anonymous Poster #2 was correct, sorry about that.
Billy
Billy
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.
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.
quote:Original post by Crazy_Vasey
Doesn''t the |whatever| mean modulus?
Not usually, but I have seen a|b used to mean a divides b, which is a related opreation to modulus.
the || is used for many stuff, depending on what ure working, ex vectors, matrices and so on...
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement