📄 zero2coeff.pro
字号:
; $Id: zero2coeff.pro,v 1.2 2002/03/14 11:49:11 riccardi Exp $function zero2coeff, zeros;+;; ZERO2COEFF;; c = zero2coeff(z);; returns the coeffs of the polynomial:;; (x+z[0])*(x+z[1])* ... *(x+z[n-1]);; where n>0. z can be a real or a complex vector.;; The coeffs are ordered from the lowest to the highest power of x;-if test_type(zeros, /NUMERIC, N_EL=n_el) then $ message, 'the input must be numeric'coeff = [zeros[0], 1B]for i=1,n_el-1 do $ coeff = poly_mult([zeros[i], 1B], coeff)return, coeffend
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -