a huge integer power 3 power n

James Cloos cloos at jhcloos.com
Sun Aug 28 15:45:07 UTC 2016


>>>>> "TG" == Torbjörn Granlund <tg at gmplib.org> writes:

TG> Thomas Lover <mailbidonjustice at gmail.com> writes:
TG>   I want to make this operation below with GMP ! And I have been trying
TG>   for 10 days now without any success. So, I need help!
  
TG>   The user enters an integer called “n”. Then I need to have a number
TG>   which is 3 power n.
  
TG> Thus far, things seem clear.

TG>   Then I have to power a huge integer that has 1000 digits with 3^n.
  
TG> I cannot make sense of this, unfortunately.

He seems to want pow(huge_int,pow(3,n)) (but using gmp instead of libm).

-JimC
-- 
James Cloos <cloos at jhcloos.com>         OpenPGP: 0x997A9F17ED7DAEA6


More information about the gmp-discuss mailing list