Skip to main content

A library for linear algebra calculations

Project description

Welcome to LinearAlgCalc!

This library is built to simplify linear algebra calculations.

To import the necessary functions and classes type 'from linearalgcalc import myfunctions'

Classes

  • Vector: A vector with real numbers
  • Complex Number
  • Complex vectors: Vectors with complex numbers

Functions

  • Complex

    • re: returns the real part of a complex number

    • im: returns the imaginary part of a complex number

    • addition: adds two complex numbers

    • subtraction: subtracts two complex numbers

    • multiplication: multiplies two complex numbers

    • conjugate: returns the complex conjugate

    • modulus: calculates the modulus

    • polar_form: returns the polar form as a string

    • exponent: returns the complex number to the exponent of n

    • roots: calculates the nth roots of a complex number

  • Vector

    • addition: Calculates and returns the sum of two vectors

    • subtraction: Calculates and returns the difference of two vectors

    • scalar_multiplication: Calculates and returns the product of a vector with a scalar

    • norm: Calculates the norm of a vector

    • dot_product: Calculates the dot product of two vectors

    • angle_between: Calculates the angle between two vectors

    • cross_product: Calculates the cross product of two vectors in R3

    • projection: Calculates the projection of a vector onto another

    • unit_vector: Returns the unit vector equivalent of the vector

    • parallelepiped_volume: Calculates and returns the volume of a parallelepiped constructed by three vectors

    • isParallel: Returns a boolean value that is dependent on whether the two vectors are parallel or not

  • ComplexVector

    • addition: Calculates and returns the sum of two complex vectors

    • subtraction: Calculates and returns the difference of two complex vectors

    • scalar_multiplication: Calculates and returns the product of a complex vector with a scalar

    • norm: Calculates the norm of a complex vector

    • inner_product: Calculates and returns the inner product of a complex vector

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

linearalgcalc-0.1.1-py3-none-any.whl (6.3 kB view hashes)

Uploaded Python 3

Supported by

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