Similar to Solution 844592, this fails for large x, e.g., x = 1e16, due to floating point errors
This solution is numerically more stable than Solution 844592.
This solution fails for large x > 1e15 due to floating point errors (e.g., 1e16+0.5==1e16).
189 Solvers
3144 Solvers
306 Solvers
467 Solvers
Matrix of almost all zeros, except for main diagonal
154 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!