# my first python script
print("hello world! \n I am Cheng-Jun Wang.")

"""
Explanation: The Jupyter Notebook
It is a web application that allows you to create and share documents that contain 
- live code
- equations
- visualizations
- explanatory text
<h1>Table of Contents<span class="tocSkip"></span></h1>
<div class="toc"><ul class="toc-item"><li><span><a href="#The-Jupyter-Notebook" data-toc-modified-id="The-Jupyter-Notebook-1">The Jupyter Notebook</a></span></li><li><span><a href="#搜狗输入法表情和符号" data-toc-modified-id="搜狗输入法表情和符号-2">搜狗输入法表情和符号</a></span></li><li><span><a href="#一级标题" data-toc-modified-id="一级标题-3">一级标题</a></span><ul class="toc-item"><li><span><a href="#二级标题" data-toc-modified-id="二级标题-3.1">二级标题</a></span></li></ul></li><li><span><a href="#运行C代码" data-toc-modified-id="运行C代码-4">运行C代码</a></span></li><li><span><a href="#Jupyter-魔术命令" data-toc-modified-id="Jupyter-魔术命令-5">Jupyter 魔术命令</a></span></li><li><span><a href="#END" data-toc-modified-id="END-6">END</a></span></li></ul></div>
End of explanation
"""


print('hello world')

1 + 1

"""
Explanation: Uses include: 
- data cleaning and transformation, 
- numerical simulation, 
- statistical modeling, 
- machine learning 
- and much more.
End of explanation
"""


%matplotlib inline
import matplotlib.pyplot as plt

xi = [1, 2, 3, 4, 5]
y = [3, 5, 9, 13, 16]

plt.plot(xi, y, 'g-s')
plt.xlabel('$x_i$', fontsize = 20)
plt.ylabel('$y$', fontsize = 20)
plt.title('$Scatter\,Plot$', fontsize = 20)
plt.show()

"""
Explanation: $E = MC^2$
\begin{align}
\dot{x} & = \sigma(y-x) \
\dot{y} & = \rho x - y - xz \
\dot{z} & = -\beta z + xy
\end{align}
搜狗输入法表情和符号

∫ ∑ ※ ➕➖✖️➗ ❎ √ ×
😪😠😡😎☺️😁📚🌲
👌👍👎👂👃👀✋❌💰🌂
0️⃣1️⃣2️⃣3️⃣4️⃣5️⃣6️⃣7️⃣8️⃣9️⃣②🔟 
🐶🐱🐔🐷🐖🐴🐎🐂🐑🐯🐧🐺🐒🐵🐻🐦🐲
💻 🌈🌎☁️❄️🏃♀👩👱✨
🆚🔥🌹✈️🌉🎄

(✿◡‿◡)害羞 ⁄(⁄ ⁄•⁄ω⁄•⁄ ⁄)⁄ d=====(￣▽￣*)b厉害 
我是我，不一样花火。～(￣▽￣～)(～￣▽￣)～ 矜持
End of explanation
"""


%%file hello.c
#include <stdio.h>

int main() {
    printf("Hello, world!");
}

! gcc hello.c -o hello # 编译

! ./hello # 执行

"""
Explanation: 一级标题
二级标题
复旦大学是一个非常棒的大学！

point 1
point 2
point 3

运行C代码
C functions are typically split into header files (.h) where things are declared but not defined, and implementation files (.c) where they are defined. http://people.duke.edu/~ccc14/sta-663/CrashCourseInC.html#a-tutorial-example-coding-a-fibonacci-function-in-c
End of explanation
"""


%lsmagic 

"""
Explanation: Jupyter 魔术命令
End of explanation
"""


!pip install version_information

# install version_information in the terminal first.
%reload_ext version_information
%version_information numpy, matplotlib, pandas, scipy, statsmodels

"""
Explanation: pip install version_information
End of explanation
"""


