#include <cmath> //math.h double sigmod(double x) { return 1/(1+exp(-x)); } 转载于:https://www.cnblogs.com/smallredness/p/10749110.html