Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/wmartinmimi/co-planar-vectors-resultant-calculator

Calculate the resultant vector from the inputted co-planar vectors
https://github.com/wmartinmimi/co-planar-vectors-resultant-calculator

calculator mit-license physics python vectors

Last synced: 9 days ago
JSON representation

Calculate the resultant vector from the inputted co-planar vectors

Awesome Lists containing this project

README

        

# Co-planar vectors resultant calculator

Calculate the resultant vector from the inputted co-planar vectors

## How to run

```shell
python main.py
```

## Accepted input types

- CSV
- Manual typing in

## Expected formats

- `magnitude` a constant unit, preferably N
- `direction` degrees from the vertical clockwise

### CSV

```csv
[magnitude],[direction]
```

## Example Output

```
Co-planar vectors resultant calculator
--------------------------------------

Choose input format:
1. CSV
2. Manual
Enter option number:
> 2

Enter new co-planar vector?
[Y/n]: y

Enter vector details:
--------------------------------------
magnitude: 28
direction (from the vertical): 90

Enter new co-planar vector?
[Y/n]: y

Enter vector details:
--------------------------------------
magnitude: 17
direction (from the vertical): 24

Enter new co-planar vector?
[Y/n]: n

resultant vector:
--------------------------------------
magnitude: 38.21273719858552
direction: 66.02010036417545
x: 34.914522932288605
y: 15.530272779924214
```

## License

Licensed under ```MIT License```