_poly.c
来自「基于4个mips核的noc设计」· C语言 代码 · 共 25 行
C
25 行
/* * libc/math/_poly.c * Internal math library function. * * double _xpoly(int order, double *coeffs, double x) * Return coeff[0] + x * coeff[1] + ... + x ^ order * coeff[order]. * * This computes _xpoly in the more efficient form: * _xpoly(x) = coeff[0] + x * (coeff[1] + x * (coeff[2] + ...+ x * coeff[n])). */#include "mathlib.h"double_xpoly(register int order, register double *coefp, double x){ register double d; coefp += order; d = *coefp--; while (order-- > 0) d = *coefp-- + (x * d); return d;}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?