Skip to main content

Quaternion algebra for Python.

Project description

Quaternion arithmetics for Python.

Usage:

>>> from quaternion import Quaternion as H
>>> q1 = H(2, 3, 2, 3)
>>> q2 = H(3, 2, 3, 2)
>>> q1 * q2
(-12 + 8i + 12j + 18k)
>>> q2 * q1)
(-12 + 18i + 12j + 8k))

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

quaternion-algebra-1.0.1.tar.gz (16.2 kB view details)

Uploaded Source

File details

Details for the file quaternion-algebra-1.0.1.tar.gz.

File metadata

File hashes

Hashes for quaternion-algebra-1.0.1.tar.gz
Algorithm Hash digest
SHA256 885473836060cf372d227efa67201c5e9ea3866e2d012091ed792983ec64e232
MD5 7127e1a4c77af788f096d0f9698e97d1
BLAKE2b-256 fa8c33aae81422632d8d878103dddd6508d832136ac1b58a9b4ae02c79f3face

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page