Geometric algebra: Difference between revisions
m
→{{header|javascript}}: expand code
m (→{{header|javascript}}: expand code) |
|||
Line 1,251:
<syntaxhighlight lang="javascript">var GA = function () {
function e(n) {
}
function cdot(a, b) { return mul([0.5], add(mul(a, b), mul(b, a))) }
function neg(x) { return mul([-1], x) }
function bitCount(i) {
}
function reorderingSign(a, b) {
}
}
function add(a, b) {
}
}
function mul(a, b)
{
}
}
}
}
return {
};
}();
And then, from the console:
|