Research Programming
-
LaTex & TexLive TipsResearch Programming 2013. 3. 13. 16:20
[TexLive]설치시 custom install 들어가서 small scheme (~350MB) 설치 뒤,TexLive manager 사용하여 잘 터지는(!) repository 선택하고,medium scheme (~1GB) 설치하여 사용(windows에서 texlive manager에서 오른쪽 클릭으로 박스가 선택되는 기현상 있음). : small scheme에서 package, font missing 일어나고, medium scheme은 충분해 보임[20170623]. [Latex] |x\>\!\> : double bracketUse '\begin{cases}', '\substack' and '\nolimits' or '\limits' f(n) = \begin{cases} n/2 &\mbox{if ..
-
맥북(Macbook pro)에 ipython (readline, QtConsole), numpy, scipy, matplotlib 설치Research Programming 2013. 2. 13. 10:59
# 별다른 요구사항이 없으면 그냥 Anaconda 혹은 EPD package를 받아 설치하는게 정신건강에 좋겠다!(Anaconda의 경우 python 등등을 별도로 관리하는 디렉토리에 설치하기에 다른 경로로 설치한 것과 중복되지 않는다.) [설치 후 실행 방법]ipython qtconsole --pylab또는, matplotlib의 그래픽을 ipython 화면 내에 표시하려면ipython qtconsole --pylab=inline Mac에 실행파일 (혹은 아이콘)을 만드는 방법은 위 명령을 text 파일로 만든 뒤 확장자를 .command로 바꿔서 shell script로 변환. (Mac에 기본설치된 TextEdit로 만들 경우 format에서 make plain text로 바꿔줄 것.) 그리고 터미널..
-
[펌] 10 Tips for Writing Fast Mathematica CodeResearch Programming 2013. 1. 8. 10:45
http://blog.wolfram.com/2011/12/07/10-tips-for-writing-fast-mathematica-code/ 1. Use floating-point numbers if you can, and use them early. :e.g. enter a third as 1./3.2. Learn about Compile...2.5. ...and use Compile to generate C code.3. Use built-in functions.4. Use Wolfram Workbench.5. Remember values that you will need in the future.6. Parallelize.6.5. Think about CUDALink and OpenCLLink.7. ..