Open bpowers opened 3 years ago
I had written a bunch of notes on sd.js a few years ago that are relevant (more or less)
A[1, *]
)A[1, *]
)MIN
, MEAN
, MAX
, RANK
, SIZE
, STDDEV
, SUM
.arrayed_variable[int_or_named_dimension]
constants[INT(RANDOM(1, SIZE(foods)))]
SUM(array[chosen_dim, *])
, where
chosen_dim
is an auxiliary variable.
roughly in priority order
'
) unary postfix operatorDimension.SubscriptName
directly in equations to get the integer subscript value (1, 2, etc)A[1, *]
andSUM(A[1:3])