8000 PEP8 : W503 issues in example · matplotlib/matplotlib@ce4d77f · GitHub
[go: up one dir, main page]

Skip to content

Commit ce4d77f

Browse files
committed
PEP8 : W503 issues in example
1 parent 08b8adb commit ce4d77f

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

examples/animation/double_pendulum_animated.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -21,18 +21,18 @@ def derivs(state, t):
2121

2222
del_ = state[2] - state[0]
2323
den1 = (M1 + M2)*L1 - M2*L1*cos(del_)*cos(del_)
24-
dydx[1] = (M2*L1*state[1]*state[1]*sin(del_)*cos(del_)
25-
+ M2*G*sin(state[2])*cos(del_)
26-
+ M2*L2*state[3]*state[3]*sin(del_)
27-
- (M1 + M2)*G*sin(state[0]))/den1
24+
dydx[1] = (M2*L1*state[1]*state[1]*sin(del_)*cos(del_) +
25+
M2*G*sin(state[2])*cos(del_) +
26+
M2*L2*state[3]*state[3]*sin(del_) -
27+
(M1 + M2)*G*sin(state[0]))/den1
2828

2929
dydx[2] = state[3]
3030

3131
den2 = (L2/L1)*den1
32-
dydx[3] = (-M2*L2*state[3]*state[3]*sin(del_)*cos(del_)
33-
+ (M1 + M2)*G*sin(state[0])*cos(del_)
34-
- (M1 + M2)*L1*state[1]*state[1]*sin(del_)
35-
- (M1 + M2)*G*sin(state[2]))/den2
32+
dydx[3] = (-M2*L2*state[3]*state[3]*sin(del_)*cos(del_) +
33+
(M1 + M2)*G*sin(state[0])*cos(del_) -
34+
(M1 + M2)*L1*state[1]*state[1]*sin(del_) -
35+
(M1 + M2)*G*sin(state[2]))/den2
3636

3737
return dydx
3838

0 commit comments

Comments
 (0)
0