poly_pow.pro

来自「IDL语言编写的用于天文自适应光学仿真的软件CAOS V6.0的第一部分。」· PRO 代码 · 共 24 行

PRO
24
字号
; $Id: poly_pow.pro,v 1.2 2002/03/14 11:49:11 riccardi Exp $function poly_pow, p, power, DOUBLE=double;+; POLY_POW;; coeff_out = poly_pow(coeff_in, e [, DOUBLE=double]);; returns the coeffs of the polynomial given by the e-th power; of the polynomial of coeffs coeff_in;;-if power eq 0 then begin    if keyword_set(double) then return, [1d0] else return, [1]+0B*p[0]endifp_out = pfor k=2,power do p_out = poly_mult(p, p_out, DOUBLE=double)return, p_outend

⌨️ 快捷键说明

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