This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static double diminishing_returns(double val, double scale) { | |
if(val < 0) | |
return -diminishing_returns(-val, scale); | |
double mult = val / scale; | |
double trinum = (Math.sqrt(8.0 * mult + 1.0) - 1.0) / 2.0; | |
return trinum * scale; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from guizero import App, PushButton | |
def button1(): | |
print("b1") | |
def button2(): | |
print("b2") | |
def button3(): | |
print("b3") |