Exponential (log, log2, log10, exp, exp2, exp10, SQRT, cur).
指数函数(log、log2、log10、exp、exp2、exp10、sqrt、cur)。
where (with pi = 3.1415... and sqrt() denoting the square root)
其中 ( pi = 3.1415...,sqrt() 表示平方根)
A more portable option is to use the standard defined style: double SQRT (double d1) throw ;.
一种更加具有可移植性的方法是,使用标准定义的风格:double sqrt (double d1) throw ;。
Now that I've written sqrt, I can just use it anywhere I want in the code. You've got to rely on the fact that I wrote it correctly, but you can basically suppress the details of how it's used.
就是忽略细节,既然我已经编写了sqrt函数,我可以在代码的任何地方使用它,你完全可以依靠,我已经编写的这个函数。
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函数,这是我在这里用的名字,我得把这段代码到处复制。
All right? So if I called sqrt alone, that return test value is done, but in this case I bound it to test, so I can go look at test, and there it is.
执行完返回值语句,但是在这里我将把它赋值给,所以当我看test的值的时候就是返回的值。
应用推荐