LCF 0.5.2: https://gist.github.com/mindbound/4e96536c3287f9acbcb9b7d0ed8909a9
Uzlabojumi:
Gradient descent can do it.