• 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。

    麻省理工公开课 - 计算机科学及编程导论课程节选

  • And when I do this test, what I want to do, is say I'm going to pick the middle spot, and depending on the test, if I know it's in the upper half, I'm going to set my start at the mid point and the end stays the same, if it's in the front half I'm going to keep the front the same and I'm going to change the endpoint.

    如果我知道目标数可能,再比中值点大的区间里,我可能就会把开始点设为中值点,而尾点不变,如果在小的那个区间里,就保持开始点不变而把尾点设为中值点,你们可以看到这儿的代码,就是这么做的,对不对?它是怎么做的?

    麻省理工公开课 - 计算机科学及编程导论课程节选

  • Because what I want to do is, 01 say if self dot price is less than 0.01, 0 I'm going to set it to 0, just keep it there.

    我想要做的是,比方说如果self。price小于0。,我就把它的值设为,然后放在那。

    麻省理工公开课 - 计算机科学及编程导论课程节选

$firstVoiceSent
- 来自原声例句
小调查
请问您想要如何调整此模块?

感谢您的反馈,我们会尽快进行适当修改!
进来说说原因吧 确定
小调查
请问您想要如何调整此模块?

感谢您的反馈,我们会尽快进行适当修改!
进来说说原因吧 确定