Skip to main content

GScrew (Generalized Screw Calculus)

Documentation Status Licence Build Status

Description

A Python module to manipulate generalized Screws and Coscrews with geometric algebras (real Clifford algebras).

Installation

A Pypi package is available, please refer to the Pypi page or enter pip install gscrew in a terminal.

Exemples

First of all, you need to import the modules:

import gscrew
from gscrew.geometric_algebra import GeometricAlgebra
from gscrew.screw import Screw

The screw module also provides a CoScrew object and the comoment function for calculating the comoment between a coscrew and a screw.

Once these modules have been imported, we can create the geometric algebra in which we will be working. For basic physical applications, a three-dimensionnal algebra should suffice:

my_algebra = GeometricAlgebra(3)
locals().update(my_algebra.blades)

The second line adds the basis blades to the local variables so that we will be able to create new multivectors just by performing linear combinations of these basis blades. For a 3D algebra, the basis blades are: s, e1, e2, e3, e12, e13, e32, e123.

We can now start working with Screw and CoScrew classes:

O = 0 * s  # the origin of the reference frame
S = 1 + (2*e2) + (3*e3)  # the resultant of the screw
M = (e1) + (5*e3)        # the moment of the screw
my_screw = Screw(O, S, M)

Licence

All the code is provided under the GNU General Public Licence v3.0+ (GPLv3+)

Metadata

Release files for gscrew 1.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for gscrew 1.1.0
File Size Uploaded Provenance Actions
gscrew-1.1.0.tar.gz 21.9 kB Without provenance Details for gscrew-1.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for gscrew 1.1.0
File Interpreter ABI Platform Actions
gscrew-1.1.0-py3-none-any.whl Python 3 none any Details for gscrew-1.1.0-py3-none-any.whl

Total release size: 43.6 kB

Release files / gscrew-1.1.0.tar.gz

Download URL gscrew-1.1.0.tar.gz
Size 21.9 kB
Tags Source
SHA-256 checksum
How to use checksums
affac69a74a6aa61d793d8bb081e95d51daf4a6296aab8388d1d3e02cb85be02
BLAKE2b-256 checksum
How to use checksums
48bf6945cfad14fa07a8be043d916d6ef5f13b32665d5f9f732e764587d42f78
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.9.21

Release files / gscrew-1.1.0-py3-none-any.whl

Download URL gscrew-1.1.0-py3-none-any.whl
Size 21.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
cb2123e380e3561a4b24094cc2b62cbde75432d4b9e4be748f46e8bd15948d72
BLAKE2b-256 checksum
How to use checksums
1370635463c3a9648ac92ae8e115d3ad370baba9214bc76f81e26184c9a8076d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.9.21

Security for gscrew 1.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page