One-Dimensional Domain Discretizer
Partitions [0, 1] into N sub-intervals with uniform grid spacing h = 1/N and interior nodes x_i = i · h.
Discretize second-order linear two-point boundary value problems using central finite difference stencils, assemble the tridiagonal stiffness-mass system, enforce Dirichlet and Neumann boundary conditions, and verify the second-order O(h²) global error convergence. Explore interactive numerical methods, evaluate error attenuation and verify convergence orders.
Ready to execute Step = 1.
Adjust Step, then execute computation.
Mathematical operations are computed deterministically using 64-bit IEEE 754 precision. Residuals reflect ordinary least-squares regression across successive observations.
Finite difference methods are naturally suited for simple rectangular or tensor-product geometries; complex curved boundaries require finite elements or coordinate mappings. The simulation solves the two-point BVP -y'' + 4y = 16x on [0, 1] with Dirichlet boundary conditions across grid spacings h = 0.20 / 2^{k-1}. The maximum nodal error is measured against the exact analytic solution. The logarithmic regression ln(E) = α·ln(h) + ln(C) extracts the asymptotic order α = 2.000 with R² = 1.000000.
Partitions [0, 1] into N sub-intervals with uniform grid spacing h = 1/N and interior nodes x_i = i · h.
Replaces derivatives with second-order central difference operators: y' ≈ (y_{i+1} - y_{i-1})/(2h), y'' ≈ (y_{i+1} - 2y_i + y_{i-1})/h².
Constructs the sparse banded coefficient matrix A and load vector b incorporating Dirichlet boundary data.
Solves the symmetric strictly diagonally dominant tridiagonal BVP system in O(N) operations without pivoting.
Computes exact closed-form solution y(x) = 4x + (sinh(2x) / sinh(2)) · (4 - 4) ... to measure exact nodal errors.
Performs linear regression on (ln(h), ln(E_max)) to verify the theoretical second-order slope α = 2.000.
Discretize second-order linear two-point boundary value problems using central finite difference stencils, assemble the tridiagonal stiffness-mass system, enforce Dirichlet and Neumann boundary conditions, and verify the second-order O(h²) global error convergence. Standardized input settings: 1.0, 2.0, 3.0, 4.0, 5.0, 6.0 step.
Set up -y'' + 4y = 16x on [0, 1] with boundary conditions y(0) = 0 and y(1) = 4, verifying the analytic solution y(x) = 4x.
For refinement levels k = 1 to 6, set grid intervals N = 5 · 2^{k-1} with spacing h = 1.0 / N.
Set interior matrix rows: -y_{i-1}/h² + (2/h² + 4) y_i - y_{i+1}/h² = 16 x_i for i = 1, ..., N-1.
Substitute known boundary values y_0 = 0 and y_N = 4 into the first and last equations, transferring knowns to vector b.
Execute TDMA forward sweep and back substitution to obtain nodal vector y, computing maximum error E_max = ||y - y_exact||_∞.
Plot ln(E_max) versus ln(h) and compute the linear regression slope to verify α = 2.000 with R² = 1.000000.
Points are your recorded observations. The solid regression line validates Finite Difference BVPs mathematical scaling.
| # | Grid Refinement Level (k) (step) | Maximum BVP Grid Error ||y - y_num||_∞ (error norm) | Logarithmic Mesh Spacing ln(h) | Logarithmic Maximum Error ln(E_max) | Remove |
|---|
No readings yet. Execute a computation and record it.