Remember, I said when we do a bisection method, we're assuming the answer lies somewhere between Well, what is the square root of a quarter? It is a half.
记住,我提过当我们用二分法的时候,我们假设答案处于,上边界和下边界之间,0。25的平方根是多少?,是0。5。
And in the even case, I'd square, divide by half, call this again: in the odd case, I go b minus 1 and then multiply by a.
就直接求a的平方的二分之b次方,如果是奇数的话,就去求a的b-1次方乘以a,以此递归下去。
I think you can tell by analogy with what I did in one dimension that the position of that object at any time t is going to be the initial position plus velocity times t plus one half a t square.
你们可以类比一下我在一维情况下的结论,这个物体在任意时刻 t 的位移,等于初始位移,加上 v ? t + 1/2 ? a ? t^2
应用推荐