-
Notifications
You must be signed in to change notification settings - Fork 4
compute incrsum
kgryte edited this page May 12, 2015
·
1 revision
Returns a method to compute a sum incrementally.
var data = [ 2, 4, 2, 7, 3 ];
var sum = compute.incrsum(),
s;
for ( var i = 0; i < data.length; i++ ) {
s = sum( data[ i ] );
console.log( s );
}
console.log( sum() );
- Utilities
- Array Creation
- Sorting and Reshaping Arrays
- Special Functions
- Arithmetic
- Relational Operations
- Logical Operations
- Trigonometry
- Geometry
- Sets
- Discrete Mathematics
- Linear Algebra
- Statistics