一种高效计算高阶方向导数的对偶数公式
A dual number formulation to efficiently compute higher order directional derivatives
AI总结:
本研究提出基于对偶数自动微分的高阶方向导数计算新公式,可推导运动学矢量公式、计算混合偏导数,经多例验证有效且代码开源。
摘要:
本文提出了一种可高效计算一阶至四阶方向导数的新公式。该公式基于采用对偶数实现的自动微分技术。方向导数是对称多重线性形式的特例,因此我们利用其对称性质和坐标表示,实现了用于计算混合偏导数的函数。此外,借助方向导数,我们推导出了速度、加速度、加加速度(jerk)和加加加速度/急动度(jounce/snap)矢量的简洁公式。\n我们通过三个算例验证了该公式的实用性。第一个算例对标量函数的四阶方向导数,将本方法与有限差分前向模式进行了对比;为此,我们编写了可计算至多四阶偏导数、支持任意近似阶数的有限差分法代码。第二个算例实现了速度、加速度、加加速度和加加加速度/急动度的高效计算。最后一个算例与若干偏导数的计算相关。本文所提公式及有限差分法的实现代码已作为补充材料提供。
英文摘要:
This contribution proposes a new formulation to efficiently compute directional derivatives of order one to fourth. The formulation is based on automatic differentiation implemented with dual numbers. Directional derivatives are particular cases of symmetric multilinear forms; therefore, using their symmetric properties and their coordinate representation, we implement functions to calculate mixed partial derivatives. Moreover, with directional derivatives, we deduce concise formulas for the velocity, acceleration, jerk, and jounce/snap vectors. The utility of our formulation is proved with three examples. The first example presents a comparison against the forward mode of finite differences to compute the fourth-order directional derivative of a scalar function. To this end, we have coded the finite differences method to calculate partial derivatives until the fourth order, to any order of approximation. The second example presents efficient computations of the velocity, acceleration, jerk, and jounce/snap. Finally, the third example is related to the computation of some partial derivatives. The implemented code of the proposed formulation and the finite differences method is proportioned as additional material to this article.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。