Random changes during starty of inventing math

This commit is contained in:
Grant Sanderson
2015-08-01 11:34:33 -07:00
parent 400aa0aada
commit 89a84134e4
10 changed files with 151 additions and 69 deletions

View File

@ -116,10 +116,10 @@ def high_inflection_0_to_1(t, inflection = 10.0):
return (sigmoid(inflection*(t - 0.5)) - error) / (1 - 2*error)
def rush_into(t):
return 2*high_inflection_0_to_1(t/2)
return 2*high_inflection_0_to_1(t/2.0)
def rush_from(t):
return 2*high_inflection_0_to_1(t/2+0.5) - 1
return 2*high_inflection_0_to_1(t/2.0+0.5) - 1
def there_and_back(t, inflection = 10.0):
new_t = 2*t if t < 0.5 else 2*(1 - t)