• It turns out you can list one, give it a name, and if you use square brackets, that tells the compiler I actually want to put multiple values inside of this -- inside of this variable and how do we do that?

    结果是你可以列举一个,给它取个名字,如果你使用方括号,那是告诉编译器,在里面我需要许多的值--在这些变量里,我怎么做到的?

    哈佛公开课 - 计算机科学课程节选

  • to do sqrt, or square root-- no, I'm going to square root use sqrt, that's the name I'm using here-- square root a hundred different places in some piece of code. Without function, I'd have to copy that piece of code everywhere.

    让我做一下准备,想象一下我要调用sqrt或者-,不,我会调用sqrt函数,这是我在这里用的名字,我得把这段代码到处复制。

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

  • If you want to write it as a vector equation, you want to write it as v square over r minus-- I want to say that it's pointing in the direction toward the center.

    如果要写出矢量方程,就应该写成 -v^2 / r,也就是说,方向就向圆心

    耶鲁公开课 - 基础物理课程节选

  • Pardon? I could square x but maybe I should just do something pretty simple here. Suppose-- whoops.

    对不起我没听清,我可以求x的平方,但是好像这里我做点简单的,改动就可以解决问题了。

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

  • So I guess I should go back, and let me do this correctly this way. Again, I can look at test, test and I guess test now if I want to get the element out-- angle bracket or square bracket?

    但是这不是我想要的对不对?,我认为我该回到这里,让我改正这个错误,好,那么我还是对元组,那么现在我想从test中取出元素来?

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

  • We know it's going around in a circle because if I find the length of this vector, which is the x-square part, plus the y-square part, I just get r square at all times, because sine square plus cosine square is one.

    我们之所以知道它做圆周运动,是因为我求出了这个矢量的模长,也就是 x 的平方加上 y 的平方,我就得到了它在任意时刻的模长平方,因为正弦平方加余弦平方始终等于1

    耶鲁公开课 - 基础物理课程节选

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

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

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