2012年9月28日星期五

DOS下设置永久环境变量

如果想设置JAVA_HOME,则需执行如下命令即可:setx JAVA_HOME "C:\Program Files\LightenBSM Server\jdk1.6.0_16"
在path中加入JAVA执行如下:setx Path "%Path%;%JAVA_HOME%\bin"
 

2012年9月19日星期三

LaTex 中在插图figure 的\caption 中使用 \cite 报错

LaTex 中在插图figure 的\caption 中使用 \cite 报错时, 在\cite 左边加上\protect 就可以解决 例如:
\begin{figure}[htbp]
\includegraphics[width=0.45\textwidth]{./pic/Hello}
\caption{Hello World!  \protect \cite{Wiki}}
\label{fig:Hello}
\end{figure}

2012年9月11日星期二

常用求导公式

sin(x)   cos(x)
cos(x)  -sin(x)
tan(x)  1/((cos(x))^2)
asin(x) 1/sqrt(1-x^2))            -1 <=x<=1
acos(x)  -1/sqrt(1-x^2)          -1<=x<=1
atan(x)  1/(1+x^2)
sinh(x)  cosh(x)                                            sinh(x)=(exp(x) - exp(-x)) / 2
cosh(x)  sinh(x)                                            cosh(x)=(exp(x) + exp(-x)) /2
tanh(x)   1/(cosh(x))^2                                  tanh(x)=sinh(x) / cosh(x)
asinh(x)  1/sqrt(1+x^2)
acosh(x)   1/sqrt(x^2-1)
atanh(x)   1/(1-x^2)

ln(x)   1/x
log10(x)  ln(10)/x
exp(x)  exp(x)
sqrt(x)   0.5/sqrt(x)
atan2(x, y)    (y*dx - x*dy) / (x^2 + y^2)
hypot(x,y)   (x*dx + y*dy) / sqrt(x^2 + y^2)              hypot(x,y)=sqrt(x^2+y^2)
pow(x,y)  pow(x,y-1) * (y*dx + x*ln(x)*dy)