Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
根据这篇博文(日语,所以我用谷歌翻译来阅读)和其他各种来源,魔法常数似乎1.70158等于 10% 的“反弹”。该常量出现在各种缓动函数中,例如 inBack、outBack、...
1.70158
人们是如何得出这个常数的,以及如何计算它?
这已经很晚了,但这里有一个计算它的函数:
function calc(p) p = p/10 local m = (27*40^2*-27*p+2*(-27*p)^3-9*40*-27*p*-54*p)/(54*40^3) local r = (m^2+((3*40*-54*p-(-27*p)^2)/(9*40^2))^3)^0.5 local s = (-m+r)^(1/3)+(-m-r)^(1/3)-(-27*p)/(3*40) return s, 1-(s+3)/(3*s+3) end