Apolyton Archive  |  Preserved copy of the Apolyton Civilization Site and its forums as they stood in September 2005. Read-only; nothing here can be posted to or replied to.  |  Forum index |  About this archive |  The 1998–2001 UBB forums
Today on Apolyton WARDELL INTERVIEW PROMO A.C.S. HISTORY CHAPTER 4 GET CIV4 /w FREE PLUS! A.C.S. PHOTO GALLERY GET A.O.M. V1.1
Apolyton Civilization Forums
main| civ2| civ3| civ4| smac| ctp2| ron| moo3| galciv| galciv2| alt| about|
ApolytonPLUS | register | search | faq | new posts | pm (-/-) | upload | members
hall of fame new! | civgroups | civgroups news | interviews | the column | radio | chat | directory | news | store | PLUS
Apolyton Civilization Forums : Powered by vBulletin version 2.0.3 Apolyton Civilization Forums > Miscellaneous > Archive > Off-Topic-Archive > Quaternions and other mathy doohickies
Show a Printable Version | Email This Page to Someone! | Receive updates to this thread | Report this to Apolyton news!

bottom of page
  
Author
Thread    < Last Thread     Next Thread > Post New Thread     Post A Reply
Asher is offline Asher
King
Calgary, Alberta
Nov 1999
time: 22:25
  Old Post 09-02-2003 14:01 Visit Asher's homepage!
Edit/Delete Message Reply w/Quote
#1 Report this post to a moderator
Quaternions and other mathy doohickies Inflate your Upload Space

Continued from a threadjack here: http://apolyton.net/forums/showthre...&threadid=76602

Matricies in 3D transforms (as we use them in compsci land) require a full 3x3 matrix, or 9 floats.

The unit quaternion:
q = [ a b c d ] (so: a^2 + b^2 + c^2 + d^2 = 1)

is equivalent to this 3x3 rotation matrix:

code:
M(q) = [ (a^2+b^2-c^2-d^2) (2bc-2ad) (2bd+2ac) ] [ (2bc+2ad) (a^2-b^2+c^2-d^2) (2cd-2ab) ] [ (2bd-2ac) (2cd+2ab) (a^2-b^2-c^2+d^2) ]

And that's quite literally how the computer stores it. Thus, Quaternions are much more efficient for 3D rotations, requiring 4 rather than 9 floats.

Edit: Formatting of the matrix

Ramo is offline Ramo
King
Austin, Texas, USA
Oct 1999
time: 23:25
  Old Post 09-02-2003 14:11 Visit Ramo's homepage!
Edit/Delete Message Reply w/Quote
#2 Report this post to a moderator
Full PM-box? Change here!

Hmmmm.. I guess all you need are four numbers for a rotation in R3 (3 for the vector around which you're rotating and one for the angle by which you rotate around it).

Asher is offline Asher
King
Calgary, Alberta
Nov 1999
time: 22:25
  Old Post 09-02-2003 14:13 Visit Asher's homepage!
Edit/Delete Message Reply w/Quote
#3 Report this post to a moderator
Support Apolyton, buy Call to Power 2

Quaternions are spiffy 'cause the composition of two rotations is simply the quaternion product. So if we wanted to rotate a vector a by a quaternion p, and then again by quaternion q, it's simply M(qp)a.

IIRC, interpolations are also very easy. I don't remember those off the top of my head so we'll avoid those.

Ramo is offline Ramo
King
Austin, Texas, USA
Oct 1999
time: 23:25
  Old Post 09-02-2003 14:29 Visit Ramo's homepage!
Edit/Delete Message Reply w/Quote
#4 Report this post to a moderator
Full PM-box? Change here!

I've never dealt with quaternions personally. Just heard 'em described superficially a while back.

On the subject of mathy doohickies, the group defined by the set of 1-1 maps of a set of 3 elements to itself where the product is defined as composition is isomorphic to the the group defined by the set of all symmetries of an equalateral triangle.

Asher is offline Asher
King
Calgary, Alberta
Nov 1999
time: 22:25
  Old Post 09-02-2003 14:32 Visit Asher's homepage!
Edit/Delete Message Reply w/Quote
#5 Report this post to a moderator
Put an end to popups!

quote:
Originally posted by Ramo
On the subject of mathy doohickies, the group defined by the set of 1-1 maps of a set of 3 elements to itself where the product is defined as composition is isomorphic to the the group defined by the set of all symmetries of an equalateral triangle.


I'll keep that in mind.

Ramo is offline Ramo
King
Austin, Texas, USA
Oct 1999
time: 23:25
  Old Post 09-02-2003 14:33 Visit Ramo's homepage!
Edit/Delete Message Reply w/Quote
#6 Report this post to a moderator
Get a bigger avatar today!

You better.

Ramo is offline Ramo
King
Austin, Texas, USA
Oct 1999
time: 23:25
  Old Post 09-02-2003 14:38 Visit Ramo's homepage!
Edit/Delete Message Reply w/Quote
#7 Report this post to a moderator
Support Apolyton

A complex function is differentiable if and only if the partial of the real part of the function with respect to real part of the variable is the partial of the imaginary part of the fuction with respct to the imaginary part of the variable and the partial of the imaginary part of the function with respect to the real part of the variable is the negative of the partial of the real part of the function with respect to the imaginary part of the variable.

Words to live by...

Asher is offline Asher
King
Calgary, Alberta
Nov 1999
time: 22:25
  Old Post 09-02-2003 14:43 Visit Asher's homepage!
Edit/Delete Message Reply w/Quote
#8 Report this post to a moderator
Got spare money?

(this is somewhat related to the topic)
I'm still kinda blown away at the performance of the NV30 chip -- it play with about 500 million polygons/second. 500,000,000. That's a staggering number.

Rogan Josh is offline Rogan Josh
Prince

Jan 1970
time: 06:25
  Old Post 09-02-2003 17:41
Edit/Delete Message Reply w/Quote
#9 Report this post to a moderator
Support Apolyton buy from Amazon

quote:
Originally posted by Ramo
On the subject of mathy doohickies, the group defined by the set of 1-1 maps of a set of 3 elements to itself where the product is defined as composition is isomorphic to the the group defined by the set of all symmetries of an equalateral triangle.


Why equilateral? Would this not be true for any triangle? (Although then the 3 elements would have to be non-identical presumably.)

Zero-Tau is offline Zero-Tau
Chieftain
Elsewhere
Aug 2002
time: 06:25
  Old Post 09-02-2003 18:09
Edit/Delete Message Reply w/Quote
#10 Report this post to a moderator
Support Apolyton, buy Galactic Civilizations

quote:
Originally posted by Rogan Josh


Why equilateral? Would this not be true for any triangle? (Although then the 3 elements would have to be non-identical presumably.)


Nope. If the triangle isn't equilateral, it doesn't have as many symmetries.

Gangerolf is offline Gangerolf
Prince
huuhh
May 2001
time: 06:25
  Old Post 09-02-2003 18:13
Edit/Delete Message Reply w/Quote
#11 Report this post to a moderator
greek Full PM-box? Change here!

I thoght english and finnish were the only allowed languages here

loinburger is offline loinburger
Emperor
Sweet Sauce Jones
Jul 1999
time: 00:25
  Old Post 09-02-2003 19:03 Visit loinburger's homepage!
Edit/Delete Message Reply w/Quote
#12 Report this post to a moderator
Support Apolyton, buy Civilization: The Boardgame

The interesting thing about quadrature is that even though a high-order interpolating function will often wildly oscillate such that the infinity-norm increases as the function's order increases, these oscillations do not decrease the accuracy of quadrature, hence the reason that Runge-Kutta methods are still accurate for a high order so long as the function's high-order derivatives are well-behaved.

Az is offline Az
King
MACEDONIA - It's the name of the sovereign country to the north of Greece
Apr 2000
time: 07:25
  Old Post 09-02-2003 19:07
Edit/Delete Message Reply w/Quote
#13 Report this post to a moderator
Support Apolyton, pre-order Civilization IV

3d transformations

thank god we don't need them!


*quietly reminds himself he's about to learn differential equations next simester*

Rogan Josh is offline Rogan Josh
Prince

Jan 1970
time: 06:25
  Old Post 09-02-2003 19:18
Edit/Delete Message Reply w/Quote
#14 Report this post to a moderator
Support Apolyton buy from Amazon

quote:
Originally posted by Zero-Tau
Nope. If the triangle isn't equilateral, it doesn't have as many symmetries.


Yes - that was what I was meaning about the 3 elements being non-identical. Or in other words, it would only be equilateral if the three elements are identical. Do you agree?

LulThyme
Guest

Not Yet
time:
  Old Post 10-02-2003 01:38
Edit/Delete Message Reply w/Quote
#15 Report this post to a moderator
Support Apolyton, buy Alpha Centauri

quote:
Originally posted by Ramo
I've never dealt with quaternions personally. Just heard 'em described superficially a while back.

On the subject of mathy doohickies, the group defined by the set of 1-1 maps of a set of 3 elements to itself where the product is defined as composition is isomorphic to the the group defined by the set of all symmetries of an equalateral triangle.


Also called the Dihedral group of order 6 (D6)
Also called the Symmetric Group of order 6 (S6)
Is by the way the smallest non-Abelian (non-commutative group)
for example, flipping a triangle over and then turning it counterclockwise 120 degree is not the same at turning it then flipping it....

LulThyme
Guest

Not Yet
time:
  Old Post 10-02-2003 01:38
Edit/Delete Message Reply w/Quote
#16 Report this post to a moderator
Tired of ads?

quote:
Originally posted by Ramo
A complex function is differentiable if and only if the partial of the real part of the function with respect to real part of the variable is the partial of the imaginary part of the fuction with respct to the imaginary part of the variable and the partial of the imaginary part of the function with respect to the real part of the variable is the negative of the partial of the real part of the function with respect to the imaginary part of the variable.

Words to live by...

Cauchy Riemman Equations
What do you study Ramo?

LulThyme
Guest

Not Yet
time:
  Old Post 10-02-2003 01:43
Edit/Delete Message Reply w/Quote
#17 Report this post to a moderator
Help yourself to an AD-FREE life

No Rogan
in a set all elements are non-identical
if a set of 3 elements has 2 that are identical, its cardinality is defined as being less than 2 ....
So suppose we have two sets : A {1,2,3} and B {4,5,6}
there are 6 bijections (one to one functions) beetween them
1 - > 4
2 - > 5
3 - > 6

1 - > 4
2 - > 6
3 - > 5

1 - > 5
2 - > 4
3 - > 6

1 - > 5
2 - > 6
3 - > 4

1 - > 6
2 - > 4
3 - > 5

1 - > 6
2 - > 5
3 - > 4

And they form a group, of order 6, usually known as the Symmetric group of order 6 (the group of permutations of 3 elements) which is isomorphic (the same up to notation) as the group of symmetries of an equilateral triangle.
Suppose we have two equilateral triangles, with the vertices labeled as the sets before
so one trinagle with vertices 1,2,3 and the other 4,5,6
there are 6 ways to send one triangle so its exactly on top of the other which correspond to the 6 ways listed above.
If the triangle is not equilateral there will be less (2 ways actually for an isoceles triangle and one way for a scalen (sp?) )
even though the numbers in the set are all different (they have to be, they are used as labelling)

Ramo is offline Ramo
King
Austin, Texas, USA
Oct 1999
time: 23:25
  Old Post 10-02-2003 01:50 Visit Ramo's homepage!
Edit/Delete Message Reply w/Quote
#18 Report this post to a moderator
Got spare money?

LT, I'm an undergrad in physics and math. Primarily physics though (that's what I plan on going to grad school in).

KrazyHorse is offline KrazyHorse
King
Macedonia
May 2001
time: 00:25
  Old Post 10-02-2003 01:54 Visit KrazyHorse's homepage!
Edit/Delete Message Reply w/Quote
#19 Report this post to a moderator
Remove this text

quote:
Originally posted by Ramo
A complex function is differentiable if and only if the partial of the real part of the function with respect to real part of the variable is the partial of the imaginary part of the fuction with respct to the imaginary part of the variable and the partial of the imaginary part of the function with respect to the real part of the variable is the negative of the partial of the real part of the function with respect to the imaginary part of the variable.

Words to live by...


You should only be dealing with harmonic functions anyhow. Simply analytic and differentiable finctions aren't very interesting.

Ramo is offline Ramo
King
Austin, Texas, USA
Oct 1999
time: 23:25
  Old Post 10-02-2003 02:07 Visit Ramo's homepage!
Edit/Delete Message Reply w/Quote
#20 Report this post to a moderator
Support Apolyton or Terrorists Win

True. We've just started power series and the like.

LulThyme
Guest

Not Yet
time:
  Old Post 10-02-2003 06:56
Edit/Delete Message Reply w/Quote
#21 Report this post to a moderator
Support Apolyton, buy GURPS/ Alpha Centauri

Have you done any algebra?
jsut how much algebra is useful in physics anyway?
I think some basic group theory for quantum mech or something ?

Ramo is offline Ramo
King
Austin, Texas, USA
Oct 1999
time: 23:25
  Old Post 10-02-2003 07:00 Visit Ramo's homepage!
Edit/Delete Message Reply w/Quote
#22 Report this post to a moderator
Put an end to popups!

I'm taking an algebra class right now. True, group theory is pretty essential in quantum mechanics, but it's not that useful at the undergrad level. I won't need it for another year.

Oerdin is offline Oerdin
King
of Internet Music.
Sep 2001
time: 21:25
  Old Post 10-02-2003 10:00
Edit/Delete Message Reply w/Quote
#23 Report this post to a moderator
Suffering from ads?

This thread reminds me why I hated differential equations. Those bastards at the uni made me take it before they'd give me my science degree.

KrazyHorse is offline KrazyHorse
King
Macedonia
May 2001
time: 00:25
  Old Post 10-02-2003 10:35 Visit KrazyHorse's homepage!
Edit/Delete Message Reply w/Quote
#24 Report this post to a moderator
Lose 30 kilos (of popups)

As well they should have.

Oerdin is offline Oerdin
King
of Internet Music.
Sep 2001
time: 21:25
  Old Post 10-02-2003 10:47
Edit/Delete Message Reply w/Quote
#25 Report this post to a moderator
Inflate your Upload Space

That doesn't mean I can't loath them for it.

KrazyHorse is offline KrazyHorse
King
Macedonia
May 2001
time: 00:25
  Old Post 10-02-2003 10:52 Visit KrazyHorse's homepage!
Edit/Delete Message Reply w/Quote
#26 Report this post to a moderator
Support Apolyton, buy Galactic Civilizations: Deluxe Edition

Admittedly I feel the same way about my PDE course.

  < Last Thread     Next Thread > Post New Thread     Post A Reply
All times are GMT. The time now is 05:25.
Apolyton Time is 00:25.
    top of page
Rate This Thread:
archivepost
Forum Jump:
Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is ON
vB code is ON
Smilies are ON
[IMG] code is ON
 




Contact Us - Apolyton Civilization Site - Support Us!

Building a better Apolyton through better information. Click here and take our poll!
Non-US visitors, click here!

Powered by: vBulletin Version 2.0.3
Copyright ©2000, 2001, Jelsoft Enterprises Limited.

Page generated in 0.0707 seconds (91.81% PHP - 8.19% MySQL) with 31 queries
Page Loading Time:

Support Apolyton: Amazon USA | Amazon UK | Amazon DE | Amazon FR |
Support Apolyton and get FREE PLUS, Buy from Chips&Bits: Galactic Civilizations | Galactic Civilizations: Deluxe Edition | Call to Power 2 | Civilization: The Boardgame | GURPS/ Alpha Centauri | Alpha Centauri | Civilization IV | Civilization III: Complete |


Front Page | Civilization IV | Civilization III | Civilization II | Call to Power II | Alpha Centauri | Master of Orion III
Rise of Nations | Galactic Civilizations | Galactic Civilizations II | Misc
Alt.Civs | Civ I | C:CtP I | About | News | Directory | Apolyton Store | Forums | Chat | Columns | Interviews | Newsletter
Scenario League | CSC | Clash of Civs | Spanish Site | CtP Maps | Cradle of Civ | WesW's Ctp1/2 Site | Civ3 Haven

apolyton.net | apolyton.com | civilization2.net | civilization3.net | civilization4.net | civilizationiv.info | calltopower.net | galciv.net | galciv2.net | moo3.net