From 543316345f1421f5e992734c20d03d96e51edbd8 Mon Sep 17 00:00:00 2001 From: timv Date: Mon, 17 Dec 2012 15:46:30 -0500 Subject: [PATCH] added sigmoid - a simple example of back-chained math --- examples/sigmoid.dyna | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 examples/sigmoid.dyna diff --git a/examples/sigmoid.dyna b/examples/sigmoid.dyna new file mode 100644 index 0000000..c095838 --- /dev/null +++ b/examples/sigmoid.dyna @@ -0,0 +1,6 @@ +% FIXME: should all be '=' instead of '+=' +sigmoid(X) += 1 / (1 + exp(-X)). + +a += sigmoid(-1). +b += sigmoid(0). +c += sigmoid(1). \ No newline at end of file -- 2.50.1