Skip to main content

Python library for mathematical functions

Project description

MathKit - A Mathematical Library Made Simple

MathKit is a Python library that provides various mathematical functions and utilities for performing common mathematical calculations.

New updated calculator usage for simpler functions

from mathkit import main
main()

Example Usage If you decide to predefine numbers

import mathkit

# If you dont want to add mathkit. before all function you can import the specific function by

# from mathkit import add
# add(5,3)

# You can do this with all the functions

mathkit.add(5, 3)  # Output: Your answer is 8
mathkit.cbrt(27)  # Output: The cube root of 27 is 3.0
mathkit.div(10, 2)  # Output: Your answer is 5.0
mathkit.fact(5)  # Output: The factorial of 5 is 120
mathkit.hcf(24, 36)  # Output: The H.C.F. of 24 and 36 is 12
mathkit.lcm(12, 18)  # Output: The LCM of 12 and 18 is 36
mathkit.log(100)  # Output: Logarithm of 100 (base e) is 4.605...
mathkit.mod(10, 3)  # Output: Your answer is 1
mathkit.mul(4, 5)  # Output: Product = 20
mathkit.per(50, 10)  # Output: 10 percent of 50 is 5
mathkit.power(2, 3)  # Output: The answer is: 8
mathkit.sqrt(25)  # Output: Square root of 25 is 5.0
mathkit.sqr(4)  # Output: The square of 4 is 16
mathkit.sub(8, 3)  # Output: Your answer is 5
mathkit.compound_interest(amount,time,interest) # Output Based On predefines numbers
mathkit.simple_interest(amount,time,interest)

Please Note For the simple and compound interest to work you have to specify the order numbers exactly in the format given

For more information, please visit the GitHub repository.

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

mathkit-4.2.3-py3-none-any.whl (4.7 kB view details)

Uploaded Python 3

File details

Details for the file mathkit-4.2.3-py3-none-any.whl.

File metadata

  • Download URL: mathkit-4.2.3-py3-none-any.whl
  • Upload date:
  • Size: 4.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.0

File hashes

Hashes for mathkit-4.2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 903c07993636b1fe475b6dae5353cbcd6bf5d859d3902059b80cb25ca8e3966b
MD5 2d25ec789847da206947a81518cde52a
BLAKE2b-256 2897c15561018751cbd5e5cf9ef233d614391590e8ea40727fc9dd9088779ab2

See more details on using hashes here.

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