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.1.0.tar.gz
.
File metadata
- Download URL: quaternion_djs-1.1.0.tar.gz
- Upload date:
- Size: 6.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.0 CPython/3.12.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bde0fef020f84db5d1002d7d19308daab22525164e1a6abc6cc27c45988120a7 |
|
MD5 | 0c2fda210ba9df11deae492f49eface5 |
|
BLAKE2b-256 | 68b2a837f5d3a5b4fc8e5c4e16eceb82f6a002a8848099a711c15eb21f693ad8 |
File details
Details for the file quaternion_djs-1.1.0-py3-none-any.whl
.
File metadata
- Download URL: quaternion_djs-1.1.0-py3-none-any.whl
- Upload date:
- Size: 7.6 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 | 5fb8e4466a3123901d67517682925ae8ae696f6f7f6b776b06f839e2b5573ee8 |
|
MD5 | 9e3360b507a6e50e83fce189da3dffdb |
|
BLAKE2b-256 | 3a31b09e331d2c6e904deddd5133bfb9099e86e98cfcba9acc6b68e2be0af27a |