Ben Chuanlong Du's Blog

And let it direct your passion with reason.

A Bug in Mathematica

Mathematica is a very intelligent and powerful math software. I use it in my study and research a lot. Mathematica's ability to take derivative and to calculate limit is obvious powerful–way much beyond many mathematician's ability. Mathematica's ability to calculate integral is also powerful. There are many integrals than …

Some Terminologies in Business Investment

Stock Ticker

A stock ticker is a report of the price for certain securities, updated continuously throughout the trading session by the various stock exchanges. A "tick" is any change in price, whether that movement is up or down. A stock ticker automatically displays these ticks, along with other relevant …

First 10-digit Prime in Consecutive Digits of Euler Constant?

One day my friend Ru He asked me a question.

What is the first 10-digit prime found in consecutive digits of e?

This is an easy problem with the help of Mathematica. The following is the Mathematica code I wrote to solve this question. It actually solves the general problem …

Set Line Space in LaTeX

  1. The parskip command makes a skip between paragraphs. The length of skip can be set using the command \setlength, e.g.,

    \setlength{\parskip}{15pt plus 1pt minus 1pt}
    
  2. The command \itemsep sets the space between items in lists, e.g.,

    \begin{itemize}
    \itemsep = 0.8cm
    \item 
    \end{itemize}
    
  3. The …

Scientific References

  1. JabRef is an open-source cross-plotform software for managing scientific references. Mendeley is a good cost-free cross-platform software for managing scientific references. It introduces the concept of social research.

  2. If you use bibtex in your LaTeX code, you have to compile your code using pdflatex/latex, bibtex, pdflatex/latex and pdflatex …

LaTeX for Chinese

  1. xetex is the state-of-art way for dealing with Chinese type setting. You can install xetex on Debian series of Linux distributions (Debian, Ubuntu, Linux Mint, etc.) using the following command.
wajig install texlive-xetex 

You can use command xelatex to compile. The utf-8 format is preferred.

There are 2 good ways …