Power functions as per the Gnu Scientific Library reference manual section 7.27. These functions are declared in the header file gsl_sf_pow_int.h
gsl_sf_pow_int.h
pow_int(x, n, give=FALSE, strict=TRUE)
input: real values
input: integer values
Boolean with TRUE meaning to return a list of three items: the value, an estimate of the error, and a status number
TRUE
Boolean, with TRUE meaning to return NaN if status is an error
NaN
http://www.gnu.org/software/gsl
# NOT RUN { pow_int(pi/2,1:10) # }
Run the code above in your browser using DataCamp Workspace