Skip to content

Commit

Permalink
indentation?
Browse files Browse the repository at this point in the history
  • Loading branch information
Peter230655 committed Feb 25, 2025
1 parent 183147c commit aa2df3e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions examples-gallery/beginner/plot_sliding_block.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@
def strasse(x, a, b):
return a*x**2*sm.exp((b - x))


# %%
# Set up Kane's equations of motion.
N = me.ReferenceFrame('N')
Expand All @@ -85,8 +84,8 @@ def strasse(x, a, b):
bodies = [me.Particle('P0', P0, m)]

# %%
# The control force and the friction are acting in the direction of the tangent
# at the road at the point where the particle is.
# The control force and the friction are acting in the direction of the
# tangent at the road at the point where the particle is.
alpha = sm.atan(strasse(x, a, b).diff(x))
forces = [(P0, -m*g*N.y + F*(sm.cos(alpha)*N.x + sm.sin(alpha)*N.y) -
friction*ux*(sm.cos(alpha)*N.x + sm.sin(alpha)*N.y))]
Expand Down

0 comments on commit aa2df3e

Please sign in to comment.