mirror of
https://github.com/3b1b/manim.git
synced 2025-07-29 21:12:35 +08:00
Style fix to exponential_decay
This commit is contained in:
@ -84,23 +84,8 @@ def squish_rate_func(func, a=0.4, b=0.6):
|
||||
def lingering(t):
|
||||
return squish_rate_func(lambda t: t, 0, 0.8)(t)
|
||||
|
||||
def exponential_decay(t, half_life = 0.1):
|
||||
# The half-life should be rather small to minimize the cut-off error at the end
|
||||
return 1 - np.exp(-t/half_life)
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
def exponential_decay(t, half_life=0.1):
|
||||
# The half-life should be rather small to minimize
|
||||
# the cut-off error at the end
|
||||
return 1 - np.exp(-t / half_life)
|
||||
|
Reference in New Issue
Block a user