In fact, my program crashes because I end up trying to divide by zero, a really bad thing. Hint: if you implement Newton's method, do not make your first guess zero.
我下一步都没法开始,实际上,我的程序会崩溃,因为我试着去除0了,真糟糕,提示你:如果你想用牛顿的方法,第一个猜想数别设为0。
Well, you'll know when it crashes, that doesn't help you very much, but you can't always tell whether something's stuck in an infinite loop or whether it's simply taking a long time to compute.
好,你将学到它在什么时候会崩溃,这对你帮助并不大,但是你不能辨别出到底是在一个循环中,有什么东西卡住了呢,还是程序需要很长的时间来计算一个结果呢。
The plane crashes exactly on the border of Canada and the United States.
飞机刚好,在加拿大和美国的边界上坠毁
Or one of my favorite examples, you could be sitting in your-- you read this sort of thing in the newspaper periodically-- you could be sitting in your living room when suddenly an airplane crashes into your house, killing you.
或者像我最喜欢用的一个例子那样,你可能坐在你-,你按时读报纸之类的东西-,你可能正坐在你家起居室里,这时突然有架飞机撞进了你家,杀死了你。
应用推荐