Skip to main content

A package with two classes Vector (2d and 3d).

Project description

Vector pkg

How to install

  • Windows
pip install vector-pkg-EnderRayquaza

How to use

import Vector as vec
v = vec.Vector(5, 7.5) #Creates a instance of Vector
print(v.x) #Shows his composant x >>> 5
print(v.y) #Idem                  >>> 7.5
print(v.st) #Shows his standard   >>> 9.013878188659973

u = vec.Vector(-8, 0.25) #Creates an other instance of Vector
w = v+u #Makes a instance of Vector with composants (v.x + u.x; v.y + u.y)
print(w.x, w.y) # >>> -3 7.75
w = v-u #Idem but with a subtraction
print(w.x, w.y) # >>> 13 7.25

k = 5
w = v*k
print(w.x, w.y) # >>> 25, 37.5

#You can do this too
v += u
v -= u
v *= k

p = v**u #Calculates the scalar product of v and u          
print(p) # >>> -38.125
a = v%u  #Calculates the angle (in degrees) between v and u
print(a) # >>> 121.90015691773374
z = complex(v) #Makes a complex number equal at x+yi
print(z) # >>> (5+7.5j)

Project details


Download files

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

Source Distribution

vector-pkg-enderrayquaza-1.0.tar.gz (3.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

vector_pkg_enderrayquaza-1.0-py3-none-any.whl (4.6 kB view details)

Uploaded Python 3

File details

Details for the file vector-pkg-enderrayquaza-1.0.tar.gz.

File metadata

  • Download URL: vector-pkg-enderrayquaza-1.0.tar.gz
  • Upload date:
  • Size: 3.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.10.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.1

File hashes

Hashes for vector-pkg-enderrayquaza-1.0.tar.gz
Algorithm Hash digest
SHA256 b2b5e5c273fa11eac012999225e1174a1e6760d62ed0158dfe3ef114a371c5c3
MD5 ce4a29bdf1b7b48786862c8e1b20deb5
BLAKE2b-256 4ca57711c1a670144c3ac2da5fe169521ed66657cf95ecd94245508ef2ce5427

See more details on using hashes here.

File details

Details for the file vector_pkg_enderrayquaza-1.0-py3-none-any.whl.

File metadata

  • Download URL: vector_pkg_enderrayquaza-1.0-py3-none-any.whl
  • Upload date:
  • Size: 4.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.10.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.1

File hashes

Hashes for vector_pkg_enderrayquaza-1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 77c9c82d57376ffc3c186e1ccfafab2562c88c9b9d51581e1c8b9eea3e02f9b9
MD5 40d21524829fd111612e1d0ad0f1c18d
BLAKE2b-256 2617617fc34154fb6a398192796eef14ab170afab436a96285c9516279da7f2c

See more details on using hashes here.

Supported by

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