mnb96
- 711
- 5
Hello,
I have a function in discrete domain [tex]f:\mathbb{Z}\rightarrow \mathbb{R}[/tex], and I assume that f is an approximation of another differentiable function [tex]g:\mathbb{R}\rightarrow \mathbb{R}[/tex].
In other words [tex]f(n)=g(n)[/tex], [tex]n\in \mathbb{Z}[/tex].
When one wants to approximate the first derivative of g, it is possible to use the forward difference or backward difference operators, which are respecively:
[tex]\Delta f(n)=f(n+1)-f(n)[/tex]
[tex]\nabla f(n)=f(n)-f(n-1)[/tex]
My question is: is it common or allowed to use a mixture of these two operators in the following way:
[tex]g'(x) \approx \Delta f(x)[/tex] for [tex]x\geq 0[/tex]
[tex]g'(x) \approx \nabla f(x)[/tex] for [tex]x<0[/tex]
I have a function in discrete domain [tex]f:\mathbb{Z}\rightarrow \mathbb{R}[/tex], and I assume that f is an approximation of another differentiable function [tex]g:\mathbb{R}\rightarrow \mathbb{R}[/tex].
In other words [tex]f(n)=g(n)[/tex], [tex]n\in \mathbb{Z}[/tex].
When one wants to approximate the first derivative of g, it is possible to use the forward difference or backward difference operators, which are respecively:
[tex]\Delta f(n)=f(n+1)-f(n)[/tex]
[tex]\nabla f(n)=f(n)-f(n-1)[/tex]
My question is: is it common or allowed to use a mixture of these two operators in the following way:
[tex]g'(x) \approx \Delta f(x)[/tex] for [tex]x\geq 0[/tex]
[tex]g'(x) \approx \nabla f(x)[/tex] for [tex]x<0[/tex]