C# 指数函数

double a=2;

double b=Math.Pow(a,3);

可得b=8

 

专有的平方根函数Math.Sqrt(a)也可由Math.Pow(a,0.5)代替。

posted @ 2010-01-21 19:35  robin.won  Views(1959)  Comments(0)    收藏  举报