I like that answer. I then tested it on the square root of 9, and as I mentioned last time, I didn't find 3. I was not crushed.
我喜欢这个答案,然后我又试了试9的平方根,跟我上次说的一样,答案不是3。
I first tested it on the square root of 4 and in one iteration it found 2.
我首先测了下求4的平方根4,它只迭代了一次并返回了2。
Well, all this time int on the blackboard I always draw an int as a square.
嗯,向来,我在黑板上用一个正方形表示一个。
So the inventor of the chess game said, "Ok. What I like is on the first block, first square, I would like one grain of rice.
于是象棋发明者说,“好吧,我希望,在第一个方格上,我想要一粒大米。
The thing is for these sorts of experiments there is a lot of control, so something that's a square in one movie will be a triangle in another movie; something that's on the top in one movie will be on the bottom in another movie.
此类实验需要控制许多因素,来保证某物在一部影片中以正方形呈现,而在另一部影片中以三角形呈现,某物在一部影片的上方呈现,而在另一部影片的下方呈现
So, the first thing I wrote for Square on the server was an admin dashboard.
所以我们为Square在服务器上编写的,第一个东西就是管理控制台。
As long as we understand that, we can do this cancellation and this says on the left-hand side the change in the quantity v square over 2 is a times the change in the quantity x.
只要我们明白这一点,我们就可以这样做简化,在等号左边,v^/2的变化量,为a乘以x的变化量
Well I'm relying on the contract, if you like, that the manufacturer of square root put together, which is, if I know I'm giving it two floats, which I do because I make sure they're floats, the contract, if you like, of square root says I'll give you back a float.
好吧我能靠一些类似合约来保证,如果这么说你喜欢的话,其实就是当求平方根的方法,获得了两个我已经确认了是浮点数的数后,这个类似合约的东西就会保证,返回一个浮点数。
And if I were to use that again, I'd just put it on your handout, I could go back and rewrite that thing that I had previously for finding the square roots of the perfect squares, just using the FOR loop. OK. What I want to do, though, is go on to-- or, sorry, go back to - my divisor example.
它可以是任意的集合,如果我又要去用这个方法的话,我会把它放在你们的课堂手册上的,我可以回过头去用FOR循环,重新写我们那个求平方数的程序,我想要做的是,是继续-哦抱歉,回到-我的除数那个例子。
应用推荐