mirror of
https://github.com/DeaDvey/mathgenerator.git
synced 2025-11-28 14:35:23 +01:00
Delete signumFunc.py
This commit is contained in:
@@ -1,19 +0,0 @@
|
|||||||
from .__init__ import *
|
|
||||||
import random
|
|
||||||
|
|
||||||
|
|
||||||
def signumFunc(min=-999, max=999):
|
|
||||||
a = random.randint(min, max)
|
|
||||||
b = 0
|
|
||||||
if (a > 0):
|
|
||||||
b = 1
|
|
||||||
if (a < 0):
|
|
||||||
b = -1
|
|
||||||
problem = "signum of " + str(a) + " is " + "="
|
|
||||||
solution = str(b)
|
|
||||||
return problem, solution
|
|
||||||
|
|
||||||
|
|
||||||
signum_function = Generator("signum function", 106,
|
|
||||||
"signum function of a is", "b",
|
|
||||||
signumFunc)
|
|
||||||
Reference in New Issue
Block a user