(12C) Quaternion Multiplication on the HP-12C - Printable Version +- HP Forums (https://www.hpmuseum.org/forum) +-- Forum: HP Software Libraries (/forum-10.html) +--- Forum: General Software Library (/forum-13.html) +--- Thread: (12C) Quaternion Multiplication on the HP-12C (/thread-13158.html) |
(12C) Quaternion Multiplication on the HP-12C - Joe_H - 06-21-2019 06:37 PM I know little about quaternions but they have become somewhat in vogue for computer graphics as they represent a more computationally efficient approach in that field for 3-D rotational calculations. They were discovered (invented?) by an Irish mathematician who memorialized them by becoming Dublin's first graffiti artist! Actually, his original graffiti is long gone but replaced by a plaque commemorating his discovery at that spot and their fundamental identity (i^2=j^2=k^2=i*j*k=-1) which he had scratched onto the bridge at the Royal Canal in his moment of inspiration in 1843. Where a complex number is an ordered pair of real numbers, a quaternion is an ordered quadruplet of real numbers. Unlike complex numbers, quaternion multiplication is not commutative. Hyper complex numbers don't stop there - octonions are ordered octuplets of real numbers etc. Anyhow, I thought the calculation of the product of two quaternions might fit into a HP-12C and gave it a go. It hasn't been done before, I presume, and it's nice to be first at something - anything! Below is the program - just in case you ever have to multiply two quaternions.... Code:
|