Difference of the Square of Sums and the Sum of Squares
Versión 1.0.0.0 (1,92 KB) por
Andrew Chen
A function called on a single natural number.
Call this function to evaluate a NATRUAL number x --> dsumsquare(x) This function will produce the difference of the sum of squares of a ll natural numbers 1 to x and the square of the sum of natural numbers 1 to x.
For example:
dsumsquare(3) = (1+2+3)^2-(1^2+2^2+3^2) = 36-14 = 22
Citar como
Andrew Chen (2025). Difference of the Square of Sums and the Sum of Squares (https://es.mathworks.com/matlabcentral/fileexchange/59140-difference-of-the-square-of-sums-and-the-sum-of-squares), MATLAB Central File Exchange. Recuperado .
Compatibilidad con la versión de MATLAB
Se creó con
R2016a
Compatible con cualquier versión
Compatibilidad con las plataformas
Windows macOS LinuxCategorías
- Robotics and Autonomous Systems > Automated Driving Toolbox > Detection and Tracking > Tracking and Sensor Fusion >
- Automotive > Automated Driving Toolbox > Detection and Tracking > Tracking and Sensor Fusion >
Más información sobre Tracking and Sensor Fusion en Help Center y MATLAB Answers.
Etiquetas
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Descubra Live Editor
Cree scripts con código, salida y texto formateado en un documento ejecutable.
| Versión | Publicado | Notas de la versión | |
|---|---|---|---|
| 1.0.0.0 |
