Posts

Print map while using lambda in Python 3

How to Solve Gamma Function

How to Support \(LaTeX{}\) in GitHubPages

The Only Way to Cope with the Future

Start to Design Web FrontEnd
Since lambda x: print(x) is a syntax error in Python < 3, I’m assuming Python 3. That means map returns a generator, meaning to get map to actually call the function on every element of a list, you need to iterate through the resultant generator. Fortunately, this can be done easily: list(map(lambda x:print(x),primes)) Oh, and you can get rid of the lambda too, if you like: list(map(print,primes)) But, at that point you are better off with letting print handle it: print(*primes, sep='\n') NOTE: I said earlier that...
Read more
I. Theoretical Analysis Gamma Function is defined in the following, Using integration by parts, one sees that: From the above calculation，and note that where . If is a positive integer, one can obtain: Appendix: Integral calculus（） \int_{\infty}^{+\infty}\mathrm{e}^{(ax^2+bx)}\mathrm{d}x = \int_{\infty}^{+\infty}\mathrm{e}^{y^2 + (b^2/4a)}\frac{1}{\sqrt{a}}\mathrm{d}y...
Read more
Schrödinger Equation (Math Equation as an example) Note: Original text from stackoverflow page. Since resources online have changed regarding this question, here’s an update on supporting with Github Pages. Note that the closest to Latex rendering without exporting as images and natively supporting it on your Jekyll site would be to use MathJax. MathJax is actually recommended in Jekyllrb docs for math support, with Kramdown, it also converts it from LaTeX to PNG, more details on it here at the Kramdown documentation. Option 1:...
Read more
The only way to cope with the future is to leave nothing to be desired for the moment. As we cannot change the past and predict the future, we should cherish the present. Good fortune and misfortune in life are formed in every action now. To grasp the moment, is to grasp the secret of happiness. Just get rid of the past and future of perseverance, and make a comfortable living at the present. It’s the true meaning of life what you have actually acquired. No matter what you face today, you have to believe yourself and be stronger than...
Read more
I start to design web frontend of my blog site.
Bootstrap makes frontend web development faster and easier. It’s made for folks of all skill levels, devices of all shapes, and projects of all sizes.
Read more