#Quaternions are a single number
1 messages · Page 1 of 1 (latest)
yes i see your point
no
Like it's 4 values added together
Tell me is 2 + 3 one number or two numbers
(2+3)
a quaternion is a 4x4 matrix
it is a matrix
Aren't they literally just a+bi+cj+dk
it's a bit more complex than that
It can't be 16 numbers whuh
huh
Ok I admit I know barely anything about quaternions
A 4x4 matrix consists of 16 values no
add it up
Ye it's a single number
how much is 2x + 2y?
2 + 2 is a single number, because it's a 4
Also x and y are variables
but you have two components in that number
i j and k are not variables
They're constants (?)
Or are you talking about a b c and d
In that case I get ur point
yes
a single quaternion cannot be 4, or 8, or 20
Much like x + y + z is one number with 3 variables
Those are real numbers
Go experience the explorable videos: https://eater.net/quaternions
Ben Eater's channel: https://www.youtube.com/user/eaterbc
Help fund future projects: https://www.patreon.com/3blue1brown
An equally valuable form of support is to simply share some of the videos.
Special thanks to these supporters: http://3b1b.co/quaternion-explorable-thanks
Pre...
Actually yeah, a quaternion can be all these numbers
Nope, cuz they're vectors
do you know how do you write down a vector?
Quaternions are not vectors
(x, y, z) etc
You write down a quaternion as a+bi+cj+dk as I said
I think
Like I said, a quaternion can be 4 or 8 or 20
just like a quaternion
you can write them down multiple ways
one of the ways you can write them down is 1i + 2j +3k if they are 3D
Crap I can't open khan academy website
i j k
see the connection?
That's a quaternion with a being 0
Which is a number
Wait I think the little
Uhh
^ things
Make it not a quarternion?
well yes, quaternions are just translations of vectors
that w (the first number) is always sin(angle) + cos(angle)
?
and the other three numbers, or the vector, is the axis
exactly
so are vectors
and matrices
well actually, my bad, they aren't systems exactly
Vectors and matrices are completely different tho?
From quaternions and numbers
They're not number systems
they are not number systems
Quaternions are just like natural numbers and whole numbers and real numbers
no they are not
Yes they are
They are an extension
Of complex numbers, which are the extension of the real numbers
Show
that might prove you right
didn't read on it yet
Quaternions are numbers
If speaking purely mathematically
And that's what I've been doing, I'm talking about pure mathematics
In compsci they're a bunch of different stuff
It's just funky numbers which are very cool
I should learn more about them
nvm that article just said "quaternions are numbers" as a buzzword typa thing
also, I wouldn't agree with you, event mathematically
because
no
they don't "help"
they can be used to describe rotations in space
But what they are is numbers
no
Like unity?
"They have the ability to uniquely describe any three-dimensional rotation about an arbitrary axis and do not suffer from gimbal lock."
so the number 90
That's their ability
what rotation is that
they are exactly like vectors, which describe a point or direction in a space
and you get a vector
are we talking about abstract maths? i love abstract maths
yes, they are
like, 2190.0121 is a quaternion
They are
It is
i need explanations
Ok so
perhaps not in the most literal sense, since we do encode a complex number as two real numbers (and a quaternion as four real numbers)
think about how a rational number is a ratio of two integers
it has two numbers in it, I guess, but it's still a number
2190.0121 + 0i + 0j + 0k
24/64 is a rational number
you cannot "make" or compute should i say, a quaternion from a single number
exactly
but it can also be
2190.0121 + 0.1i + 0.1j + 0.1k
because you can calculate it
it's a number system
no, a complex number is not a "number system"
I think you misunderstand what a number is
it is an element in a number system
Numbers go beyond just real numbers
"A number is a mathematical object used to count, measure, and label.", as per wikipedia's first paragraph on number systems
yes it is
"In mathematics, a complex number is an element of a number system that extends the real numbers with a specific element denoted i, called the imaginary unit and satisfying the equation i^2 = -1"
is has two parts
a real part and an imaginary part
2/8 is not a number system, therefore is a number, because it has only one real part
3blue1brown has some very nice videos talking about quaternions (and their applications for rotations)
yes, I did already link it here
you are using these terms completely incorrectly
Also 90 is a rotation of 0 according to the converter I found on the internet
2/8 is, indeed, not a number system, because it's a number
can you share
this has nothing to do with it only having one part, or only a real part
a number is an element of a number system
A number system is like
1 is a number because it is an element of the integers
Whole numbers and Real Numbers
2 + 1i is not a number, it's a number system, it belongs on the complex plane and was "misjudged" as an "imaginary" number for simplicities sake
again, this is objectively wrong
the complex numbers are a number system
Natural numbers, Whole numbers, Rational numbers, Real numbers, Complex numbers, Quaternion numbers
2 + 1i is a number in the complex number system
From smallest to biggest up to wuaternions
I think I didn't miss anything at least 😓
Those are number systems!
90 as the real part of the quaternion is indeed (0, 0, 0, 0)
but 90 is not the quaternion
3 is a natural number, integer, rational number, real number, complex number, and quaternion number
it satisfies the rules for all of these number systems
okay but then so are vectors? right?
indeed
perhaps the confusion comes from how you tend to store complex numbers as a Vector2 and quaternions as a Vector4
this is just an implementation detail
Vectors are just a collection of numbers
it is the most convenient way to implement them on a computer
Which is helpful when you wanna store a quarternion since it has 4 variables
No
Quaternions are numbers
quaternions are not vectors
You can conveniently store it in a vector but it is not one
how many components/numbers does it have
the distinction between "a complex number" and "a vector of two real numbers" is, indeed, down to semantics
how many components/numbers does it have
It's a vector representing a quaternion
Just representing
What this actually is is
0i + 0j + 0k + 1
You can just store the values in a vector for convenience
Which is what programmers do
I imagine it would be pretty hard to store a quarternion in anything but a vector for programmers
this is nonsense
Also it literally says it's a number!
i was hoping to have an interesting discussion in here, but i'm obviously just being trolled
what
i didn't get a single source that confirms your information and you are the one getting trolled 💀
i had to resort to ai, yes, it's funny
"a quaternion cannot be represented as a single number"
"a quaternion is a number.."
It's dropping the "real"
And even then it's wrong
A quarternion is a 4 dimensional number
This is what it's right about
It's a number
In 4 dimensions
x y z and w
so is a vector
it's a number too then
because it represents a singular point in those dimensions
No for god's sakes!
"In mathematics, the quaternion number system extends the complex numbers."
A vector is a bunch of numbers
A quarternion is one number with a bunch of variables
A vector is not one number
A quarternion is one number
One can be represented with another, but just represented
See? A number
You can't "compute it" because it's not real
You're misunderstanding the meaning of "number"
Numbers go beyond real numbers
The norm is just the geometrical mean pretty sure
as in, it does not have to be written as a function but a single number
It just squares all the components, adds them up and sqrts them pretty sure
Well yes
except it does
the 0 before i
the 2 before j
and the 5 before k
those are variables, because they vary
so is the 2
So does 2x + 3y
exactly
It's still one number except that one has variables
and what is that?
No?
You literally put them in
It'd be a variable if it was w + xi + yj + zk
But then you put in 2 instead of w, 1 instead of x, -2 instead of y and 5 instead of z
It's now not a variable because you put them in
It became a constant
And i j and k are not variables
This has no variables
they are also constants yea
It's a single number
but a quaternion is a single rotation along an axis by a certain amount of degrees
meaning, it consists of a vector
and a real number
A quarternion is a 4 dimensional number that can represent rotation
well not really a vector but yea
It represents rotation
It's not rotation
It just represents and has the ability to do so
Just like complex numbers have the ability to represent alternating current
But you wouldn't call 2 + 4i "just alternating current" or wtv
That's applied mathematics
In pure mathematics which is again, what I'm talking about
A quarternion is one 4 dimensional number
Just a bunch of numbers
WELL
Yeah
It's multiple numbers
Yes
like an array
but a quaternion "computes" it
well
Wdym computes it
A vector is an array a matrix is an array of arrays of sorts
Quaternion? Yeah
Stage 1, denial
Good luck
You'll probably find just the applications of quaternions tho
There are a lot of them
Very useful numbers
Google "quaternions in pure mathematics" you should find something
Good luck
if you are still here
did we say, complex numbers are numbers? or did we say something else
They are
Quaternions are an extension of them
I mean they are literally called complex numbers
a quaternion rotates a 3D point in space in regards to the origin
mathematically that means that it rotates a 3D direction (since a direction is already sort of defined by a origin, or usually, it's considered to be (0, 0))
meaning that you need the quaternion form to output a 3D point, which is a vector, which we said is not a number
meaning that a quaternion mathematically results in a vector of size of 3
a quaternion cannot output/result in a single number because that would mean you can get a vector (or compute a vector) from a single number
expanding on the wikipedia article (yea i know, not the greatest source):
https://en.wikipedia.org/wiki/Quaternion#:~:text=A quaternion is an expression of the form
In the picture below, i,** j** and k are unit vectors
Unit vectors: https://en.wikipedia.org/wiki/Unit_vector#:~:text=In mathematics%2C a,pronounced "v-hat"
Furthermore
Hamilton describes a quaternion q = a + bi + cj + dk as consisting of a scalar part and a vector part where the latter is sometimes called as the imaginary part.
This part right here took A LONG LONG TIME
"More properly, the field of real numbers is isomorphic to a subset of the quaternions. The field of complex numbers is also isomorphic to three subsets of quaternions."
The field of real numbers being the a, b, c and d
In mathematics, a unit vector in a normed vector space is a vector (often a spatial vector) of length 1. A unit vector is often denoted by a lowercase letter with a circumflex, or "hat", as in
v
^
...
In mathematics, the quaternion number system extends the complex numbers. Quaternions were first described by the Irish mathematician William Rowan Hamilton in 1843 and applied to mechanics in three-dimensional space. Hamilton defined a quaternion as the quotient of two directed lines in a three-dimensional space, or, equivalently, as the quotie...
i was writting all of this
for nothing
"More properly, the field of real numbers is isomorphic to a subset of the quaternions. The field of complex numbers is also isomorphic to three subsets of quaternions"
which means
that's how it can be represented and used
" the field of real numbers is isomorphic to a subset of the quaternions, what we mean is that there is a one-to-one correspondence between the two systems. Specifically, every real number can be represented as a quaternion of the form a + 0i + 0j + 0k. This means that the real numbers and a subset of the quaternions have the same structure, even though the individual elements are different."
which means
it can be used to rotate a point
they always are
this was a ride
i mean sure
yea
but real numbers are also quaternions
they can just be written as a "function"
just like whole numbers are also rational numbers
yup
isomorphism is fun
yea thanks
quaternions are fun little numbers
basically
imagine two systems
and a function in them
that returns the same output, respective to those systems
"In mathematics, an isomorphism is a structure-preserving mapping between two structures of the same type that can be reversed by an inverse mapping."
basically, "equal" things
holy shiiit
more stuff
a vector can also be represented as a quaternion
which is so counterintuitive, but WHAT DOES IT MEAN
oh ye i said that already
it's very funny
does that mean that a quaternion is both a single scalar value and a vector at the same time?
because, saying that it can be represented as both is ambigous, so shouldn't quaternions just be quaternions? just like vectors are vectors or arrays, single numbers are scalars or values? can't quaternions be classified more correctly as rotations or instructions of some sort?
no they're numbers
they have components and you can put these components into a vector
or smth my brain is not working anymore
in pure maths theyre nothing but numbers
but a quaternion can equal its vector part
"Hamilton describes a quaternion q = a + bi + cj + dk as consisting of a scalar part and a vector part where the latter is sometimes called as the imaginary part."
"More properly, the field of real numbers is isomorphic to a subset of the quaternions. The field of complex numbers is also isomorphic to three subsets of quaternions"
vector part is just the imaginary part
subset of the quaternions are isomorphic or equal to the field of real numbers
while three subsets are equal to the field of complex numbers
yes, just represented as bi + cj + dk which is still mathematically three unit vectors
unit vectors?
yes
i is the "x"
j is the "y"
k is the "z"
in other words i can be written as (1, 0, 0), j as (0, 1, 0) and k as (0, 0, 1)
the numbers before are the "amount" of how much each of those "axis" are influencing the rotation
