IDL中的微分和积分程序

来自Shiyin's note
跳到导航 跳到搜索

积分

内置程序

  • qromb
using Romberg integration.
  • qromo
using a modified Romberg's method (section 4.4 of Numerical Recipes in C)
  • qsimb
using Simpson's rule
  • INT_2D,INT_3D,INT_TABULATED

astro_lib

  • 子程序qsimp,上面内禀的qsimp是函数形式
该子程序比内禀函数更快,因为用的是数组运算* QTRAP
可以传递函数的额外变量
  • QTRAP
函数 Integrate using trapezoidal rule to specified accuracy. (section 4.2 of Numerical Recipes)