- python >= 3.10 (Required)
- python >= 3.12 (Suggested)
- numpy (Suggested)
- Deprecated (Required)
Syntax: isPositive(n: int | float) -> bool
Alternative: not isNegative(n)
Documentation: "Returns whether n is positive or not"
Syntax: isNegative(n: int | float) -> bool
Alternative: not isPositive(n)
Documentation: "Returns whether n is negative or not"
Syntax: isZero(n: int | float) -> bool
Alternative: n == 0
Documentation: "Returns whether n is zero or not"
Syntax: @rename_on_init(name: str)
Documentation: "Rename a function when it is initialized. This may raise unexpected behavior, however"
Syntax: @retry(amount: Optional[int], stop_at: Optional[Tuple[Exception]])
Documentation: "Try calling the functon amount amount of times, but stop if the exception raised is in stop_at or if the function did not raise an error"
Syntax: @cache
Documentation: "Create a cache of all results given by a function. run the .clear_cache() function to delete the cache. Can be used to speed up certain algorithms such as recursive Fibonacci sequence"
Syntax: @time_func
Documentation: "Time a function. Parse in the keyworded argument _no_time = True to get the return instead of the time it took to execute"
Syntax: factorial(n: int) -> int
Documentation: "Calculate the factorial of a number"
Requirements: numpy
Syntax: integrate(func: Callable, start: Optional[int | float], end: Optional[int | float], dx: Optional[int | float]) -> float
Documentation: [Self-Explanatory]
Used Builtins: multiprocessing
Syntax: fib(n: int) -> int
Documentation: Calculate the fibonacci sequence for a number recursively
Requirements:
- numpy (suggested)
Syntax: seed(a: Optional[int | float | bytes | bytearray)
Documentation: To be used as a context manager
Requirements:
- numpy (suggested)
Syntax: aseed(a: Optional[int | float | bytes | bytearray)
Documentation: To be used as an asynchronous context manager
Requirements:
- numpy (suggested)
Syntax: Constant(value: Any)
Documentation: A constant, read-only value.
-V: Show the installation version--install-requirements: Install all requirements--upgrade: Update to the newest version of eouTools
python -m eouTools <command>