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 hashes)

Uploaded source

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page