Skip to main content

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

This version

0.1

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

basedrelativity-0.1.tar.gz (3.6 kB view hashes)

Uploaded Source

Built Distribution

basedrelativity-0.1-py3-none-any.whl (4.8 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page