A package for using quaternions
Project description
Quaternion
This package contains the code to enable calculations with Quaternions. Quaternion are in essence, 4-dimensional complex numbers that have applications in Mathematics, Physics and Computer Science. For more information check out (https://en.wikipedia.org/wiki/Quaternion)
This once was an area of study for myself during my undergraduate and I thought for a challenge I would make this package.
Table of contents
Installation
There are two sources for installation:
- GitHub, https://github.com/DrJStrudwick/Quaternion
- PyPi,
pip install quaternion-djs
As the package develops the changelog can be found here
Documentation
Our documentation is hosted on ReadTheDocs and can be found here: https://quaternion-djs.readthedocs.io/en/latest/
Example
The Quaternion class can be initialized easily by just supplying the corresponding values for the x, i, j, k components and then use in calculations as required. For the full list of methods and attributes available see the documentation.
>>>from quaternion_djs import Quaternion
>>>quaternion_1 = Quaternion(1, 2, 0, 1.2)
Contributing
If anyone wishes to contribute to improving this code base please see our contributing guide however please bear in mind our code of conduct
License
This work is released under the MIT License which you can find here
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file quaternion_djs-1.0.0.tar.gz
.
File metadata
- Download URL: quaternion_djs-1.0.0.tar.gz
- Upload date:
- Size: 6.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.0 CPython/3.12.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 16bff538e3ecbeb39f8762882464890e718c92ccd465da022eedc0c78d566c93 |
|
MD5 | 883ed400c2798209a677e4d347f71132 |
|
BLAKE2b-256 | 0267716118e5a15ee707b448f3b31984e833bc84545b1a9322478fe3153bd411 |
File details
Details for the file quaternion_djs-1.0.0-py3-none-any.whl
.
File metadata
- Download URL: quaternion_djs-1.0.0-py3-none-any.whl
- Upload date:
- Size: 7.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.0 CPython/3.12.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 48bf8badd3559b435618be924612d595ab3a3088d76ccdbfcf57d32847e02d6d |
|
MD5 | 23e9e2a5104bd8a1597ab7483333627a |
|
BLAKE2b-256 | 55315ef808ecc1c06425afecf409e39227ec654e99e0564c40799a53e6fbe9d1 |