Skip to content
Tagged articles

summation

2 articles · Page 1 of 1
JavaScript
JavaScript
Oct 17, 2026 · Fundamentals

Stop Using reduce for Sums: JavaScript's Math.sumPrecise() Explained

This article explains how JavaScript's reduce method loses precision when summing large or many numbers due to floating-point rounding, introduces the new ES2026 Math.sumPrecise() method that avoids intermediate rounding errors, demonstrates its accuracy with examples like summing 1e20, 0.1, -1e20 and 1000 times 0.1, and notes current browser support.

ES2026IEEE 754JavaScript
0 likes · 6 min read
Stop Using reduce for Sums: JavaScript's Math.sumPrecise() Explained
21CTO
21CTO
Nov 29, 2020 · Artificial Intelligence

Decode Math Symbols with Python: From Summation to Matrix Multiplication

Learn how to translate common mathematical symbols such as summation, product, factorial, conditional expressions, and matrix multiplication into clear Python code, revealing the underlying computations and helping data scientists and ML practitioners deepen their mathematical intuition through practical examples.

Code ExamplesPythondata science
0 likes · 7 min read
Decode Math Symbols with Python: From Summation to Matrix Multiplication