就直接求a的平方的二分之b次方,如果是奇数的话,就去求a的b-1次方乘以a,以此递归下去。
And in the even case, I'd square, divide by half, call this again: in the odd case, I go b minus 1 and then multiply by a.
说明:关于c语言中一些常见的问题的源代码,例如,冒泡排序,水仙花数,求二次方程等。
C language on some common problems of the source code, for example, bubble sort, daffodils, seeking quadratic equations, etc.
本文根据STURM定理设计了一个算法,按这一算法编写了一个求高次方程所有实很近似值的C语言程序。
Based an STURM method, this paper designs an algorithm, by which a gener-al C-program for the real root approximate solution of higher equation.
Three plus five. I can take something to a power, double star, just take three to the fifth power.
+5,我也可以,求一个数的次方,例如求3的5次方。
So let me show you another way I could do exponentiation. Taking an advantage of a trick.
看我怎么用这个小技巧,来求a的b次方的。
And in the even case, I'd square, divide by half, call this again: in the odd case, I go b minus 1 and then multiply by a.
就直接求a的平方的二分之b次方,如果是奇数的话,就去求a的b-1次方乘以a,以此递归下去。
应用推荐