diff options
author | Jason Le Long <jasonnlelong@gmail.com> | 2018-03-24 22:21:17 +0000 |
---|---|---|
committer | Jason Le Long <jasonnlelong@gmail.com> | 2018-03-24 22:21:17 +0000 |
commit | f60534b37431068775b0913687a5be11159cd180 (patch) | |
tree | 4873ece7736415e0f0272db8b3c181f6449d54ce | |
parent | 002c61f74a3f24afbca34ca38e85eea854150677 (diff) |
Adding Calculation.py
-rw-r--r-- | sassbot/modules/artifact2-0/Calculate.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/sassbot/modules/artifact2-0/Calculate.py b/sassbot/modules/artifact2-0/Calculate.py new file mode 100644 index 0000000..251a193 --- /dev/null +++ b/sassbot/modules/artifact2-0/Calculate.py @@ -0,0 +1,8 @@ +# Embedded file name: /home/bouncer/sassbot/modules/artifact2-0/Calculate.py
+import math
+
+def DiminishingReturns(score, scale, reduction):
+ if score < 0:
+ return -diminishing_returns(-score, scale)
+ DiminishedReturn = int(math.ceil(math.sqrt(4 * (1 * score) / scale / 2) * scale)) - reduction
+ return DiminishedReturn
\ No newline at end of file |