amandp13 / Cool-Scripts-Python-Nerds

A collection of some cool python scripts.😍 Feel free to collaborate and add the best script you code.
https://github.com/amandp13/Cool-Scripts-Python-Nerds
GNU General Public License v3.0
64 stars 54 forks source link

Added a vector class #78

Closed adarsh-kishore786 closed 3 years ago

adarsh-kishore786 commented 3 years ago

Class defines vectors of all dimensions as well as basic operations on vectors.

There are operations defined like the dot product, addition, subtraction, negation of vectors, finding angle between them, finding their length.

The class is well-documented and all examples are tested using doctest module. Anyone who needs to use a vector library can use this.