Created
September 9, 2020 08:09
-
-
Save kellyelton/d5417ce100eb48694dab54070b1d3def to your computer and use it in GitHub Desktop.
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
# Copyright Kelly Elton 2020 | |
# All Rights Reserved | |
function pow with value int and power int | |
set result to value | |
foreach i in 1 to power | |
result = result * value | |
return result | |
function sqrt with value float | |
return .platform.math.sqrt with value: value | |
function add | |
a int | |
b int | |
return a + b | |
function add with a int and b int | |
return (a + b) | |
function sigmoid with value int | |
set exp to .math.exponent with value: -value | |
return 1.0 / (1.0 + exp) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment