https://github.com/t-88/resang
interpreter used to calculate the sum of resistors-
https://github.com/t-88/resang
Last synced: 2 months ago
JSON representation
interpreter used to calculate the sum of resistors-
- Host: GitHub
- URL: https://github.com/t-88/resang
- Owner: t-88
- License: mit
- Created: 2023-06-04T13:24:07.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2023-06-04T16:05:10.000Z (about 2 years ago)
- Last Synced: 2025-02-01T23:44:55.432Z (4 months ago)
- Language: Python
- Size: 51.8 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Resang
A Interpreter To calculate total value of restitors on series and parallel.
Its a solotion for problem in "prob-R wla 1_R.pdf", i solved it with "ast.literal_eval" function. now i want to solve it from scratch using parsing.
- Resang short for resistor lang## Problem
(10, [20, 30]) => 22.00
where () means on series and [] means on parallel## Run
u can run it in two modes: interperted mode by not providing file input
```
$ python3 resang.py
```
or normal mode where u provide the file input and the program spits out the calculations
```
$ python3 resang.py input.txt
```