Algorithm 1008
Open Access
- 19 May 2020
- journal article
- research article
- Published by Association for Computing Machinery (ACM) in ACM Transactions on Mathematical Software
- Vol. 46 (2) , 1-26
Abstract
A Matlab class for multicomplex numbers was developed with particular attention paid to the robust and accurate handling of small imaginary components. This is primarily to allow the class to be used to obtain n -order derivative information using the multicomplex step method for, among other applications, gradient-based optimization and optimum control problems. The algebra of multicomplex numbers is described, as is its accurate computational implementation, considering small term approximations and the identification of principal values. The implementation of the method in Matlab is studied, and a class definition is constructed. This new class definition enables Matlab to handle n -order multicomplex numbers and perform arithmetic functions. It was found that with this method, the step size could be arbitrarily decreased toward machine precision. Use of the method to obtain up to the seventh derivative of functions is presented, as is timing data to demonstrate the efficiency of the class implementation.Keywords
This publication has 22 references indexed in Scilit:
- CasADi: a software framework for nonlinear optimization and optimal controlMathematical Programming Computation, 2018
- Basics of Functional Analysis with Bicomplex Scalars, and Bicomplex Schur Analysis2014
- Bicomplex holomorphic functional calculusMathematische Nachrichten, 2013
- Blocked Schur Algorithms for Computing the Matrix Square Root2013
- Bicomplex hyperfunctionsAnnali di Matematica Pura ed Applicata (1923 -), 2010
- An efficient overloaded implementation of forward mode automatic differentiation in MATLABACM Transactions on Mathematical Software, 2006
- Combining source transformation and operator overloading techniques to compute derivatives for MATLAB programs2002
- ADMIT-1ACM Transactions on Mathematical Software, 2000
- Adifor 2.0: automatic differentiation of Fortran 77 programsIEEE Computational Science and Engineering, 1996
- A Schur method for the square root of a matrixLinear Algebra and its Applications, 1983