/Utilities-Lib-Python

A set of different utilities for Python

Primary LanguagePythonMIT LicenseMIT

Run on Repl.it


Utilities library for Python - By HipyCas

This library includes various utility functions in different categories: maths, variables, etc.

In the actual version, this library includes functions in the fields of: maths


The maths classes and functions included in this version are:

  • Number (class)

  • .square(x): calculates the square of a given number x (x^2)

  • .cube(x): calculates the cube of a given number x (x^3)

  • .isEve(x): returns True if x is even, otherwise returns False

  • .isOdd(x): returns True if x is odd, otherwise returns False

  • .factorize(x): gives the factorization in a list of x

  • .factorize_precision(x): the same as factorize, but with the prime numbers up to 1000, not 100.