Algorithm for finding power

80 Views Asked by At

I has been searching for a high precision library in PHP to do calculations like $$232323232323^{121212.2232323232}$$ etc (ie, with very large numbers, including decimals), but failed to get any. Hence I decided to write my own.

Could you suggest the possible approaches to do calculations like $$232323232323^{121212.2232323232}?$$

One possible approach could be $$232323232323^{121212.2232323232} = 232323232323^{121212} * 232323232323^{0.2232323232}$$

Doing this using log and exp might be another option but then exp and log function logic is a problem

Using Taylor series migh be another option, but it is a lengthy process.

Experts, please advise