Skip to content

Commit

Permalink
division bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
lmarzora committed May 8, 2017
1 parent cdaece1 commit 79458f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion activation_exp.m
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
function [f,fder] = activation_exp(b)
f = @(x) 1 ./ (1+exp(-2*b*x));
fder = @(x) 2*b*exp(2*b*x)/((exp(2*b*x)+1).^2);
fder = @(x) 2*b*exp(2*b*x)./((exp(2*b*x)+1).^2);
end

0 comments on commit 79458f4

Please sign in to comment.