I am trying to write some code to do a Taylor approximation for a given function, and, as actually using differentiation strategies is very complicated for a computer program, I have used the forward difference formula. When I tested just the differentiation function, everything worked pretty well to start. Then, I tried making a Taylor approximation for the polynomial ($x^2$), to see if I got roughly the same function back. The first few terms were fine, but, after about the fifth term, my coefficients were way off (using $\Delta x$ of 0.0001). After testing the differentiation function, I realized that small errors in the forward difference formula were building up and causing results to be way off on higher derivatives. What can I do to minimize this error? I have tried smaller $\Delta x$ values, but they cause issues with both memory usage and estimation of lower derivatives.
2025-01-13 09:13:31.1736759611
Minimize compounded error in forward difference formula
43 Views Asked by Isaac Krementsov https://math.techqa.club/user/isaac-krementsov/detail AtRelated Questions in CALCULUS
- Derivative of Lambert W function.
- how to use epsilion-delta limit definition to answer the following question?
- Finding the equation of a Normal line
- How to Integrate the Differential Equation for the Pendulum Problem
- Help in finding error in derivative quotient rule
- How to solve the following parabolic pde?
- Finding inflection point
- How to find the absolute maximum of $f(x) = (\sin 2\theta)^2 (1+\cos 2\theta)$ for $0 \le \theta \le \frac{\pi}2$?
- Utility Maximization with a transformed min function
- Interpreting function notation?
Related Questions in DERIVATIVES
- Help in finding error in derivative quotient rule
- Function satisfing : $h(x)=f(2x-1)$ with $f'(-1)=0 $ and $f'(2)=-2$ then what is $h'(x) $?
- Using the chain rule of differentiation to evaluate an integral along a curve
- Derivative of power series
- What does the second value of `x` mean here?
- Partial derivative of composition with multivariable function.
- How to take the derivative of $Y=\log(x+\sqrt{a^2+x^2})$?
- The derivative of a two-to-one complex function has no zeros.
- Derivative of power series with nonnegative coefficients
- Error in logarithmic differentiation of $R(s)=s^{\ln s}$
Related Questions in PROGRAMMING
- Programming language used in Berry Nelson's (Stochastic modeling) book
- Obtain Fourier Coefficients from Discrete Fourier Transform
- The Digits of Pi and e
- Summation notation index n-1 refers to non-existent element?
- Program for General Form
- Construct certain univariate functions over bounded interval having given set of moments
- Example of a "abrupt function"
- How to programmatically find dodecahedron's edges as couple of vertices
- Monads and Monoids-as-categories
- Is there a mathematical property which could help "sum up" information from certain matrix areas?
Related Questions in ERROR-PROPAGATION
- Simpson's Rule for IVP. Truncation Error proof
- Calculate Standard Deviation in Multiplication
- Show that the ratio between two numbers is always proportional to the the maximum percentage error of their average?
- Error Propagation
- Do theorems involving chaotic mappings hold in a finite precision context?
- Propagation of Uncertainties
- Find the absolute and relative error for a calculator with incorrect rounding
- Error in distance between points in spherical coordinates
- scientific computing problem, error analysis and writing algorithm
- Proof of a result in numerical analysis, error bound.
Related Questions in NUMERICAL-CALCULUS
- Applying Collatz function iterations to large integers
- Evaluation of complete elliptic integral of second kind
- error in theta method
- Change of Interval for Chebyshev–Gauss quadrature
- consistency of RK method
- Does $x \cdot \sin \left( \frac{1}{x} \right) = 1$ has solutions?
- Fixed Point Iteration Method, an example
- Minimize compounded error in forward difference formula
- Are the nodes of the Gaussian quadrature the same for any function?
- Relative error floating point number multiplication/division
Trending Questions
- Induction on the number of equations
- How to convince a math teacher of this simple and obvious fact?
- Refuting the Anti-Cantor Cranks
- Find $E[XY|Y+Z=1 ]$
- Determine the adjoint of $\tilde Q(x)$ for $\tilde Q(x)u:=(Qu)(x)$ where $Q:U→L^2(Ω,ℝ^d$ is a Hilbert-Schmidt operator and $U$ is a Hilbert space
- Why does this innovative method of subtraction from a third grader always work?
- What are the Implications of having VΩ as a model for a theory?
- How do we know that the number $1$ is not equal to the number $-1$?
- Defining a Galois Field based on primitive element versus polynomial?
- Is computer science a branch of mathematics?
- Can't find the relationship between two columns of numbers. Please Help
- Is there a bijection of $\mathbb{R}^n$ with itself such that the forward map is connected but the inverse is not?
- Identification of a quadrilateral as a trapezoid, rectangle, or square
- A community project: prove (or disprove) that $\sum_{n\geq 1}\frac{\sin(2^n)}{n}$ is convergent
- Alternative way of expressing a quantied statement with "Some"
Popular # Hahtags
real-analysis
calculus
linear-algebra
probability
abstract-algebra
integration
sequences-and-series
combinatorics
general-topology
matrices
functional-analysis
complex-analysis
geometry
group-theory
algebra-precalculus
probability-theory
ordinary-differential-equations
limits
analysis
number-theory
measure-theory
elementary-number-theory
statistics
multivariable-calculus
functions
derivatives
discrete-mathematics
differential-geometry
inequality
trigonometry
Popular Questions
- How many squares actually ARE in this picture? Is this a trick question with no right answer?
- What is the difference between independent and mutually exclusive events?
- Visually stunning math concepts which are easy to explain
- taylor series of $\ln(1+x)$?
- Determine if vectors are linearly independent
- What does it mean to have a determinant equal to zero?
- How to find mean and median from histogram
- Difference between "≈", "≃", and "≅"
- Easy way of memorizing values of sine, cosine, and tangent
- How to calculate the intersection of two planes?
- What does "∈" mean?
- If you roll a fair six sided die twice, what's the probability that you get the same number both times?
- Probability of getting exactly 2 heads in 3 coins tossed with order not important?
- Fourier transform for dummies
- Limit of $(1+ x/n)^n$ when $n$ tends to infinity