網頁

2019年3月29日 星期五

Doom emacs installation

Doom emacs installation

    git clone https://github.com/hlissner/doom-emacs ~/.emacs.d
    cd ~/.emacs.d
    git checkout develop
    cd bin/
    ~/.emacs.d/bin/doom -y quickstart
    ~/.emacs.d/bin/doom -y refresh

2019年3月20日 星期三

cscope and gtags

cscope

find ./ -name "*.c" -o -name "*.h" | awk '{printf("\"%s\"\n", $0)}' > cscope.files
cscope -Rbq -i cscope.files

we need to deal with spaces in the path for cscope.

global gtags

find ./ -name "*.c" -o -name "*.h" > gtags.files
gtags

2019年1月31日 星期四

孟氏定理或梅涅劳斯定理

\[ \large \frac{AN}{BN} \cdot \frac{BL}{CL} \cdot \frac{CM}{AM} = 1 \]

證明

透過正弦定理,有\[\frac{AN}{AM} = \frac{\sin\beta}{\sin\alpha} \] 同理可得,\[\frac{BL}{BN} = \frac{\sin\alpha}{\sin\gamma} , \frac{CM}{CL} = \frac{\sin\gamma}{\sin\beta} \] 相乘即可得 \[\frac{AN}{AL} \cdot \frac{BL}{BN} \cdot \frac{CM}{CL} = \frac{\sin\beta}{\sin\alpha} \cdot \frac{\sin\alpha}{\sin\gamma} \cdot \frac{\sin\gamma}{\sin\beta} = 1 \]

參考資料: Wikipedia

log(4x^2+4ax)=log(4x-a+1), 有唯一實數解x,求a的範圍?