It contains codes in Matlab, in particular, there are 3 functions (NumDerEquispacedData, Fun, DerFun) and 1 script (Test) to test the algorithm proposed and implemented in NumDerEquispacedData.
Purpose: Compute the derivative of order
Syntax:
Purpose: Compute the derivatives of a function
Description: Given a vector
Parameters:
input
input
input
output
output
Error Indicators and Warnings. Here is the list of errors or warnings detected by the function:
ifail=1 - on entry (a >= b) or (nu <= 0).
(ifail=2) - the method cannot be applied because (n < nu+2).
Script that can be used to test [d,ifail] = NumDerEquispacedData(a,b,nu,f)
In particular you can choose the following parameters:
type - the type of function given by Fun(x,type) that we want to test
type=1 --> f(x)=1/(1+x^2);
type=2 --> f(x)=cos((1+x)^2)
type=3 --> f(x)=exp(x)
DerOrd - the Order of the Derivative
For type=1,2 DerOrd=1,2,3
For type=3 DerOrd=1,2,3, ....
[y] = Fun(x,type) is the function used in Test.
[y] = DerFun(x,type,DerOrd) is the analytical derivative of Fun of order DerOrd.
[1] N. Egidi, J. Giacomini, P. Maponi, M. Youssef, "An FFT method for the numerical differentiation", Applied Mathematics and Computation, 445:127856, 2023.
[2] N. Egidi, J. Giacomini, P. Maponi, "A Fredholm integral operator for the differentiation problem", Computational and Applied Mathematics, 41(5):220, 2022.
[3] N. Egidi, P. Maponi, "A spectral method for the solution of boundary value problems", Applied Mathematics and Computation, 409:125812, 2021.
[4] N. Egidi, P. Maponi, "An SVE Approach for the Numerical Solution of Ordinary Differential Equations", Sergeyev Y., Kvasov D. (eds) Numerical Computations: Theory and Algorithms. NUMTA 2019. Lecture Notes in Computer Science, Springer, Cham, 11973:70-85, 2020.
[5] N. Egidi, P. Maponi, "The singular value expansion of the Volterra integral equation associated to a numerical differentiation problem", Journal of Mathematical Analysis and Applications, 460:656-681, 2018.