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()表示平方根)
The help output for the math module shows the wide range of mathematical functions supported, including the sqrt function.
math模块的帮助输出展示了所支持的大量数学函数,包括sqrt 函数在内。
The Mix() operator (Hadamard operator) when applied to a bit in the |0> state will transform the state into sqrt(0.5)(|0>+|1>) as in the example above.
Mix()运算符(Hadamard 运算符)用于处于 |0>状态的位时,将会象上面的例子一样把状态转变成sqrt(0.5)(|0>+|1>) 。
The math functions include abs(), acos(), asin(), atan(), atan2(), constant(), cos(), exp(), highest(), log(), lowest(), sin(), sqrt(), and tan().
其中的运算函数包括abs()、acos()、asin()、atan()、atan2()、constant()、cos()、exp()、highest()、log()、lowest()、sin()、sqrt()和tan()。
It contains a nested loop that calls exp , cos , and sin , followed by a loop that calls sin and SQRT .
它包含了一个嵌套的循环,该循环会调用exp 、cos以及sin,接下来是一个调用sin和sqrt的循环。
On running this test, the BOOST_CHECK macro fails despite the fact that you're using the SQRT function provided as part of the standard library.
运行这个测试时,尽管使用的是作为标准库一部分提供的sqrt函数,boost_check宏仍然会失败。
A more portable option is to use the standard defined style: double SQRT (double d1) throw ;.
一种更加具有可移植性的方法是,使用标准定义的风格:double sqrt (doubled1)throw ;。
Check the method name, and generate a fault response if it's not SQRT (the only method this script knows how to handle).
检查方法名,如果不是sqrt(它是该脚本懂得如何处理的惟一方法),则生成错误响应。
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函数,我可以在代码的任何地方使用它,你完全可以依靠,我已经编写的这个函数。
It is not advisable to attempt to write your own normalize, dot, inverse, SQRT operations, however. If you use the built-in ones then the driver will generate much better code for you.
不建议您自己写normalize,dot,inverse,sqrt等操作函数,如果您使用内建函数,底层驱动将会为你生成更好质量的代码。
It is not advisable to attempt to write your own normalize, dot, inverse, SQRT operations, however. If you use the built-in ones then the driver will generate much better code for you.
不建议您自己写normalize,dot,inverse,sqrt等操作函数,如果您使用内建函数,底层驱动将会为你生成更好质量的代码。
应用推荐