An open API service indexing awesome lists of open source software.

https://github.com/dharmatech/combine-equations.py


https://github.com/dharmatech/combine-equations.py

Last synced: 20 days ago
JSON representation

Awesome Lists containing this project

README

          

# Introduction

This is a set of experimental Python modules for solving equations in Sympy.

## `display_equations_`

`display_equations_` shows
- known values in green 🟢
- wanted value in red 🔴
- unknown values in default color

image

## Interactive equation solver

```
python .\examples\eq-gui\demo_gui_features.py
```

image

Video demo of the interactive equation editor:

https://youtu.be/O837G7cj5fE?si=wk4sURLNVGvgSIRq

This uses the `tkinter` Python library. So it's a native GUI.

## Interactive equation solver for JupyterLite Notebooks

image

Video demo:

https://youtu.be/7ysUdxTfKhU?si=KQiYmqjUhq6nNjXn

Notebook used in the demo available here:

https://github.com/dharmatech/github-pages-test

You can try out the interactive equation solver without installing anything as it runs in a browser.

## Examples

Examples from the textbook University Physics are here: [examples/up](examples/up).

## Install from github

```
uv pip install 'git+https://github.com/dharmatech/combine-equations.py'
```

## Install from cloned repository

```bash
git clone https://github.com/dharmatech/combine-equations.py.git
cd combine-equations.py
uv pip install -e .
```

Run examples:

```
python .\examples\eq-gui\demo_gui_features.py
python .\examples\up\ch4\up-example-4.7\up-example-4.7-000.py
```

## Testing

Install dev dependencies and run tests:

```bash
uv pip install -e ".[dev]"
uv run pytest
```