Algebra.js
function(arr) {
                    var symbol = new Symbol(0);
                    for(var i=0; i<arr.length; i++) {
                        var x = arr[i].toSymbol();
                        symbol = _.add(symbol, x);
                    }
                    return symbol;
                }
function(arr) {
                    var symbol = new Symbol(0);
                    for(var i=0; i<arr.length; i++) {
                        var x = arr[i].toSymbol();
                        symbol = _.add(symbol, x);
                    }
                    return symbol;
                }
function ( arr ) { var symbol = new Symbol ( 0 ) ; for ( var i = 0 ; i < arr . length ; i ++ ) { var x = arr [ i ] . toSymbol ( ) ; symbol = _ . add ( symbol , x ) ; } return symbol ; }
this is for the numbers
this is for the numbers