Skip to main content

cos202finalbycharawi is a Python library for dealing with points and vectors.

Installation

Use the package manager pip to install cos202finalbycharawi.

pip install cos202finalbycharawi

Usage

from cos202finalbycharawi import Vector

v1 = Vector(1,2)
  v2 = Vector(3,4)
  print(v1)
  print(v2)
  v1.euclideandistance(v2)
  print(v1.lenght())
  print(v1.unit())
  print(v1.dotproduct(v2))
  #print(v1.crossproduct(v2))
  print(v1+v2)
  print(v1-v2)
  print(v1*v2)
  print(v1/v2)

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

Author

Charawi Detphumi

License

MIT

Release files for cos202finalbycharawi 0.0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for cos202finalbycharawi 0.0.3
File Size Uploaded
cos202finalbycharawi-0.0.3.tar.gz 3.4 kB Details

Release files / cos202finalbycharawi-0.0.3.tar.gz

Download URL cos202finalbycharawi-0.0.3.tar.gz
Size 3.4 kB
Tags Source
SHA-256 checksum
How to use checksums
fd2673b7ebaf0b436861579a9d131c12a260fd61d2d64a70196f0a77e123e89d
BLAKE2b-256 checksum
How to use checksums
242a16f76e0c7b8a331d0c145737000fbb287f3a4b907ab5b0d4ea1fffdd5393
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.12

Release history Release notifications | RSS feed

This release

0.0.3 This release

1 release file

0.0.2

1 release file

0.0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page