Ruthless Rounding at it's Finest :)
Project description
#
# zEquals :)
#
Because it starts with a z.
Because I've heard about it via 'Numberphile'.
Because it's awesome.
Basic usage:
>>> from zequals import *
>>> zMul(1345,653)
589100
If you are thinking : Now what's the use, 1345 times 653 should be 589680....
Please take a look here : http://www.youtube.com/watch?v=aOJOfh2_4PE
But it get's better!
After installing zequals one could do this :
from zequals import z
@z
def myAwesomeMathFunctions(x,y,z):
d = someWickedCalculus(x,y)
f = someOtherWeirdThing(z,x)
return d/f
The 'deocration' of your function with the @z decorator will make sure all
arguments passed to your function will be 'zequalized'.
Real World Example:
import math
def myFunc(a,b):
return math.sqrt((a*a) + (b*b))
myFunc(1253,3543)
# will yield : 3758.03911634778
now once we go
@z
def myFunc(a,b):
return math.sqrt((a*a) + (b*b))
myFunc(1253,3543)
# will yield 3754.210969031975
GitHub Repo : https://github.com/zdevops/zequals
# zEquals :)
#
Because it starts with a z.
Because I've heard about it via 'Numberphile'.
Because it's awesome.
Basic usage:
>>> from zequals import *
>>> zMul(1345,653)
589100
If you are thinking : Now what's the use, 1345 times 653 should be 589680....
Please take a look here : http://www.youtube.com/watch?v=aOJOfh2_4PE
But it get's better!
After installing zequals one could do this :
from zequals import z
@z
def myAwesomeMathFunctions(x,y,z):
d = someWickedCalculus(x,y)
f = someOtherWeirdThing(z,x)
return d/f
The 'deocration' of your function with the @z decorator will make sure all
arguments passed to your function will be 'zequalized'.
Real World Example:
import math
def myFunc(a,b):
return math.sqrt((a*a) + (b*b))
myFunc(1253,3543)
# will yield : 3758.03911634778
now once we go
@z
def myFunc(a,b):
return math.sqrt((a*a) + (b*b))
myFunc(1253,3543)
# will yield 3754.210969031975
GitHub Repo : https://github.com/zdevops/zequals
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
zequals-0.0.4.tar.gz
(1.9 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file zequals-0.0.4.tar.gz.
File metadata
- Download URL: zequals-0.0.4.tar.gz
- Upload date:
- Size: 1.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b1718df00bb45306ead6893e6988e03a7186df30f1c405faf3b7cfe44702d233
|
|
| MD5 |
2c05ebbc211c77fe65e80edcdd18ad2b
|
|
| BLAKE2b-256 |
dd3381419facf18ddabe2b7affd5e3c1f0374c2f9e867d26923ecd1458ba97a5
|
File details
Details for the file zequals-0.0.4.macosx-10.8-intel.exe.
File metadata
- Download URL: zequals-0.0.4.macosx-10.8-intel.exe
- Upload date:
- Size: 63.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
87cad72411dea3f06c5f130e8f4a05bd80b3514b71103e094d393ebce7c9c3cc
|
|
| MD5 |
4c0e14b25ee137d97a77f7ef31aaec9e
|
|
| BLAKE2b-256 |
51c068f396ad0e3e6199b525450e3324c8cfbcfddca56ae7fd3aca476499afab
|