Solve relativity problems and actually get the right answer.
Project description
basedrelativity
Python package for solving relativity problems. Make no mistake, this package is not simply an alternative to Einstein's math. basedrelativity contains genuine corrections to both SR and GR and should always be used in place of the Lorentz transforms without exception.
Visit basedphysics.com for an overview of the logic and math.
Installation
pip install basedrelativity
Usage
Use the ForwardSolver to compute the data that would be collected by an observer from the local motions of distant observees. All observer property inputs should be from the observee's local system.
from basedrelativity import ForwardSolver
my_observer = Observer()
observee = Observer(5,5)
observee.local_v = 400000
solver = ForwardSolver()
solver.add_observer(my_observer)
solver.add_observer(observee)
observee_local_distance = solver.solve('x', my_observer, observee)
Use the InverseSolver to compute the local motions of observed objects from an observer's data. All observer property inputs should be from the perspective of the primary observer.
from basedrelativity import InverseSolver
my_observer = Observer()
observee = Observer(5,5)
observee.local_v = 400000
solver = ForwardSolver()
solver.add_observer(my_observer)
solver.add_observer(observee)
observee_local_distance = solver.solve('x', my_observer, observee)
Contributing
If you find a bug 🐛, please open a bug report. If you have an idea for an improvement or new feature 🚀, please open a feature request.
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 basedrelativity-0.1.tar.gz
.
File metadata
- Download URL: basedrelativity-0.1.tar.gz
- Upload date:
- Size: 3.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/6.0.0 pkginfo/1.9.6 requests/2.29.0 requests-toolbelt/0.9.1 tqdm/4.65.0 CPython/3.11.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7176047c301d63ecd6d3b7fe744e113406f620e8d1075548c97329d71e44eb36 |
|
MD5 | 97dc059d4314cee0039a49f67c703767 |
|
BLAKE2b-256 | 059e7550bbfda9b336630522e05b16535e6d65d9900d02b4578edb5d50c606ed |
File details
Details for the file basedrelativity-0.1-py3-none-any.whl
.
File metadata
- Download URL: basedrelativity-0.1-py3-none-any.whl
- Upload date:
- Size: 4.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/6.0.0 pkginfo/1.9.6 requests/2.29.0 requests-toolbelt/0.9.1 tqdm/4.65.0 CPython/3.11.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 41cb01bf16d1c555d91769116ad9ee41836d17779fa2835808c609254bcfe7c5 |
|
MD5 | e4c0b093670ebeddfdcc2b8c59b268c7 |
|
BLAKE2b-256 | 12325df46d732780441253eb45f2374ecfa6d22d0fa607289667fbd260e0043b |