mnb96
- 711
- 5
Hello,
I have a function in discrete domain f:\mathbb{Z}\rightarrow \mathbb{R}, and I assume that f is an approximation of another differentiable function g:\mathbb{R}\rightarrow \mathbb{R}.
In other words f(n)=g(n), n\in \mathbb{Z}.
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:
\Delta f(n)=f(n+1)-f(n)
\nabla f(n)=f(n)-f(n-1)
My question is: is it common or allowed to use a mixture of these two operators in the following way:
g'(x) \approx \Delta f(x) for x\geq 0
g'(x) \approx \nabla f(x) for x<0
I have a function in discrete domain f:\mathbb{Z}\rightarrow \mathbb{R}, and I assume that f is an approximation of another differentiable function g:\mathbb{R}\rightarrow \mathbb{R}.
In other words f(n)=g(n), n\in \mathbb{Z}.
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:
\Delta f(n)=f(n+1)-f(n)
\nabla f(n)=f(n)-f(n-1)
My question is: is it common or allowed to use a mixture of these two operators in the following way:
g'(x) \approx \Delta f(x) for x\geq 0
g'(x) \approx \nabla f(x) for x<0