?? d3tanh.m
字號:
function [d1, d2, d3] = d3tanh(a, y)% DTANH Calculate three first derivatives of 'tanh'% Copyright (C) 1999-2004 Antti Honkela, Harri Valpola,% and Xavier Giannakopoulos.%% This package comes with ABSOLUTELY NO WARRANTY; for details% see License.txt in the program package. This is free software,% and you are welcome to redistribute it under certain conditions;% see License.txt for details.if nargin < 2, y = tanh(a);endif nargout == 1 d1 = 1 - (y .^ 2);else y2 = y .^ 2; d1 = 1 - y2; d2 = -2 * y .* d1; d3 = 2 * d1 .* (3*y2 - 1);end
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -