⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 specfunc-pow-int.texi

📁 开放gsl矩阵运算
💻 TEXI
字号:
@cindex power function@cindex integer powersThe following functions are equivalent to the function @code{gsl_pow_int}(@pxref{Small integer powers}) with an error estimate.  These functions aredeclared in the header file @file{gsl_sf_pow_int.h}.@deftypefun double gsl_sf_pow_int (double @var{x}, int @var{n})@deftypefunx int gsl_sf_pow_int_e (double @var{x}, int @var{n}, gsl_sf_result * @var{result}) These routines compute the power @math{x^n} for integer @var{n}.  Thepower is computed using the minimum number of multiplications. Forexample, @math{x^8} is computed as @math{((x^2)^2)^2}, requiring only 3multiplications.  For reasons of efficiency, these functions do notcheck for overflow or underflow conditions.@end deftypefun@example#include <gsl/gsl_sf_pow_int.h>/* compute 3.0**12 */double y = gsl_sf_pow_int(3.0, 12); @end example

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -