2022年1月30日 星期日
2021年6月6日 星期日
2021年6月5日 星期六
2021年6月1日 星期二
程式三大定律
最近閱讀「我Rust我驕傲」,書中提到程式的三大定律
- 程式必須正確
- 程式必須可維護,但不能違反第一項定律
- 程式必須高效,但不能違反前兩項定律
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日 星期四
孟氏定理或梅涅劳斯定理
證明
透過正弦定理,有\[\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
訂閱:
文章 (Atom)

