-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Commit by inagaki #1
base: master
Are you sure you want to change the base?
Conversation
inagaki/predator_prey.py
Outdated
import matplotlib.pyplot as plt | ||
|
||
def predator_prey(f, t, a, b, c, d): | ||
# |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
関数やクラスのコメントは3連のダブルコーテーションで囲う法が良いと思います。
そうするとfunction.__docs__
にセットされるので。
inagaki/predator_prey.py
Outdated
|
||
#independent variable | ||
nt = 1000 | ||
tmax = 30.0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PythonのスタイルガイドPEP8では、イコールの位置を揃えない、というふうになっています。
inagaki/predator_prey.py
Outdated
#independent variable | ||
nt = 1000 | ||
tmax = 30.0 | ||
dt = tmax/nt |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
**
以外の演算子は両側にスペースで区切ることが推奨されています。
First commit for jupyter-notebook chapter.
稲垣さんから