2 ms·
R and Matlab are definitely array-oriented in that sense (though not fully). Here's how you might do it in R: prod(1:x)
by sesqu 8y ago
R and Matlab are definitely array-oriented in that sense (though not fully). Here's how you might do it in R:
prod(1:x)