Skip to content

Commit

Permalink
Enhanced iterative output.
Browse files Browse the repository at this point in the history
Completley solves and closes #3.
- Added `%GAIN%~`.
- Added descriptive byline.
- Maintains `sizeOf()=808` bytes.
  • Loading branch information
itsN1X committed May 23, 2020
1 parent 4e71a22 commit 8c03f41
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions g.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
# A degenerate gamblers' TTD calculator.
# ://itsN1X.github.io/8621_infty_die : JavaScript (ES8 compatible)
# ://itsN1X.github.io/8644_infty_die : Python (2.0 & 3 compatible)
# (C) 1996 Nikhil @itsN1X Pandita
## A d/gamblers calculator.
### https://itsn1x.github.io/8621_infty_die : JavaScript (ES8 compatible)
### https://itsn1x.github.io/8644_infty_die : Python (2.0 & 3 compatible)

def suma(sini, sinc, site):
ssum=0
for si in range(site):
Expand All @@ -18,12 +19,11 @@ def profun(a,b,c,d):
def l(e,f,g,h):
for k in range(g):
i=k+1
print(i,llast(e,f,i),suma(e,f,i),profun(e,f,i,h))
print(i,llast(e,f,i),suma(e,f,i),profun(e,f,i,h),(((h*llast(e,f,i))/(suma(e,f,i)))-1)*100)
# For use w/o imports;
## Utilities (On by default)
# Utilities (On default)
iini = float(input("ini : "))
iinc = float(input("inc : "))
iite = int(input("ite : "))
wincon = int(input("wco : "))
print(profun(iini,iinc,iite,wincon))
l(iini,iinc,iite,wincon)

0 comments on commit 8c03f41

Please sign in to comment.