計算4的1萬次方的結果

2021-04-01 02:05:55 字數 703 閱讀 9841

基本的思想就是模擬人手算的方法,來完成大數運算,很簡單

using system;

using system.collections;

using system.diagnostics;

namespace ibms.algorithem

console.writeline("");

}int power(int basenum, int n)

if(n==0)

//獲得結果位數

int size = (int)(n*math.log10(basenum))+1;

result = new int[size];

result[0]=1;

for(int i=0; i< n; i++)

's ",basenum,i+1);

}return result;

}void checkcarray(int m,int index)

}///

/// 向量和乙個整數的乘法運算

///

/// 向量

/// 乘數

void multi_vector(int m, int n)

}debug.assert(totalbit!=0);

for(int  i=totalbit-1; i>=0; i--)

m[i]= temp;}}

}}

用MSSQL計算2的10000次方

在論壇看到 牛人們的 思路 特此收藏啊 以備學習 本機測試 1秒 用decimal 38,0 0秒 set nocount on goif object id based is not null drop table based if object id tb is not null drop ta...

用MSSQL計算2的10000次方

在論壇看到 牛人們的 思路 特此收藏啊 以備學習 本機測試 1秒 用decimal 38,0 0秒 set nocount on goif object id based is not null drop table based if object id tb is not null drop ta...

用MSSQL計算2的10000次方

在論壇看到 牛人們的 思路 特此收藏啊 以備學習 本機測試 1秒 用decimal 38,0 0秒 set nocount on goif object id based is not null drop table based if object id tb is not null drop ta...