我写了如下语句:
for(i=0;i<8;i++)
{
Net[0][i]=X[i];
O[0][i]=1.0/(1+exp(-(Net[0][i]-Theta[0][i])));
}
编译后出现如下错误;请高手指教是怎么回事
E:\java\neural>javac Neural.java
Neural.java:114: cannot resolve symbol
symbol : method exp (double)
location: class NeuralActionListener
O[0][i]=1.0/(1+exp(-(Net[0][i]-Theta[0][i])));
^
Neural.java:114: operator / cannot be applied to float,java.lang.Strin
O[0][i]=1.0/(1+exp(-(Net[0][i]-Theta[0][i])));
^
2 errors