Talk:Geometric algebra: Difference between revisions

m
Line 149:
::::: To be correct, you should verify using .hasOwnProperty() that you are not dealing with something inherited (some javascript environments create situations where arrays inherit properties which are not indices). --[[User:Rdm|Rdm]] ([[User talk:Rdm|talk]]) 21:58, 18 October 2015 (UTC)
::::::I've changed add and multiply. I don't know about this hasOwnProperty stuff. I'll look into it later.--[[User:Grondilu|Grondilu]] ([[User talk:Grondilu|talk]]) 22:09, 18 October 2015 (UTC)
:::::::I've added a J implementation which supports (in a 64 bit J implementation) roughly 63 orthogonal dimensions (9223372036854775807 multivector dimensions - not 9223372036854775808 because of limitations of 2's complement arithmetic - and the sparse implementation is already quirky enough that that explicit support for that off-by-one is built into the interpreter). Not so many dimensions in a 32 bit J implementation, but of course most of those dimensions will be ignored in any context.
:::::::Meanwhile, here's the [https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/hasOwnProperty official doc on .hasOwnProperty()]. As for why you might want that, consider what happens if <code>Object.prototype.foo= function(){}</code> before the implementation ran...--[[User:Rdm|Rdm]] ([[User talk:Rdm|talk]]) 17:24, 19 October 2015 (UTC)
 
6,951

edits