def axon(input_n):
    if input_n < 0:
        output = 0
    else:
        output = 1

    return output

def soma(speed, straight_legged, threshold, w1, w2):
    x = 0
    x = speed*w1 + straight_legged*w2 + threshold

    output = axon(x) 
    
    return output
print(soma(speed = 0.1, straight_legged = 0.1, threshold = 1, w1 = -1, w2 = 1))
print(soma(speed = 0.2, straight_legged = 0.1, threshold = 1, w1 = -1, w2 = 1))
print(soma(speed = 0.3, straight_legged = 0.2, threshold = 1, w1 = -1, w2 = 1))
print(soma(speed = 0.1, straight_legged = 0.4, threshold = 1, w1 = -1, w2 = 1))
print(soma(speed = 0.6, straight_legged = 0.1, threshold = 1, w1 = -1, w2 = 1))
print(soma(speed = 0.5, straight_legged = 0.3, threshold = 1, w1 = -1, w2 = 1))
print(soma(speed = 0.2, straight_legged = 0.5, threshold = 1, w1 = -1, w2 = 1))
print(soma(speed = 0.3, straight_legged = 0.6, threshold = 1, w1 = -1, w2 = 1))
print(soma(speed = 0.2, straight_legged = 0.7, threshold = 1, w1 = -1, w2 = 1))
print(soma(speed = 0.9, straight_legged = 0.9, threshold = 1, w1 = 1, w2 = -1))

    
'print(axon(1))'
'print(axon(-1))'
'print(axon(0))'
'print(axon(0.5))'
'print(axon(-2))'
'print(axon(100000))'
