Skip to content

Instantly share code, notes, and snippets.

@DownGoat
DownGoat / func.py
Created October 9, 2019 16:32
for henrik
def func(yn: float, _lambda: float) -> float:
return -(_lambda * yn)
@DownGoat
DownGoat / flex.py
Last active October 9, 2019 16:41
flex.py
# (1a) Write a function here
def func(x: float) -> float:
return -x * lam
def other_func(yn: float, _lambda: float) -> float:
return -(_lambda * yn)
def main():
_lambda = 2 # lambda