开发者

Flashbuilder "to the power of N"

开发者 https://www.devze.com 2023-01-23 19:43 出处:网络
How can I have the ^-N in the sta开发者_开发知识库tement below mean \"to the power of -N\" in Flashbuilder?

How can I have the ^-N in the sta开发者_开发知识库tement below mean "to the power of -N" in Flashbuilder? Thanks

var M:Number =  1 - (1 + J)^-N;


var M:Number = 1 - Math.pow(1 + J, -N);


Colin is correct, use the Math.pow(val1:Number, val2:Number):Number method.

http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/Math.html#pow()

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号