Skip to main content

A Python module made for use with numbers and data

Project description

WhirlCalc

Whirlcalc is an advanced python module with some different functions related to Maths and other computations

Currently Whirlcalc is on version 2b0 (v2 beta)

NOTE: This file will not be updated on pre-releases, this file gives v1.0.0 readme.

Binary to Decimal:

>>> import whirlcalc
>>> print(whirlcalc.binary2decimal(1010))
>>> 10

Decimal to Binary:

>>> import whirlcalc
>>> print(whirlcalc.decimal2binary('110001001'))
>>> 393

Factorial:

>>> import whirlcalc
>>> print(whirlcalc.factorial(5))
>>> 120

Evaluate:

>>> import whirlcalc
>>> print(whirlcalc.evaluate("2*3+100-190+factorial(3)-pi"))
>>> -81.1415926535898

valid functions:

whirlcalc.make_penguin()
whirlcalc.factorial(int)
whirlcalc.arithmetic_mean(list)
whirlcalc.decimal2binary(int)
whirlcalc.binary2decimal(int)
whirlcalc.hexadecimal2decimal(str)
whirlcalc.decimal2hexadecimal(int)
whirlcalc.octal2decimal(int)
whirlcalc.decimal2octal(int)
whirlcalc.evaluate(str)

NOTE: evaluate() only supports factorial() and pi.

Can I use it?

Yeah! Of course! you can use it.. (Only if you are a cute penguin!)

and if you are not a penguin.. then.. try this:

>>> import whirlcalc
>>> whirlcalc.make_penguin()

CHANGELOG:

v2.0.0:
> added classes
  > decimal
  > binary
  > octal
  > hexadecimal

v1.0.0:
> added decimal2binary()
> added binary2decimal()
> added hexadecimal2decimal()
> added decimal2hexadecimal()
> added octal2decimal()
> added decimal2octal()
> improved make_penguin()

Project details


Download files

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

Source Distribution

whirlcalc-2b0.tar.gz (4.7 kB view details)

Uploaded Source

File details

Details for the file whirlcalc-2b0.tar.gz.

File metadata

  • Download URL: whirlcalc-2b0.tar.gz
  • Upload date:
  • Size: 4.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.10

File hashes

Hashes for whirlcalc-2b0.tar.gz
Algorithm Hash digest
SHA256 a890874f12518a86eafd06c27dc42b472a48e1912208338a00a031222648fb2f
MD5 bad6162f06b35b5825c303b0e17f8deb
BLAKE2b-256 073ed6fbb076c7659dd5db5bf2f714119d3d1944dcbd2dfe6430cc0ed4706a15

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