SDXorg / test-models

A collection of System Dynamics models implemented in various environments with a canonical output
MIT License
27 stars 22 forks source link

Test for Vensim POWER function #89

Closed rogersamso closed 1 year ago

rogersamso commented 1 year ago

Adds test for Vensim's POWER function.

enekomartinmartinez commented 1 year ago

Thanks @rogersamso

Could you add more cases, please, also using non-integers and negative values, and different subscripts in both arguments, like:

a = POWER(var1[dim1], var2[dim2])
b = POWER(var0, var2[dim2])
c = POWER(var2[dim1, dim3], var4[dim1, dim2])

etc...

Please consider including inputs that change on time, as in the Vensim example in the documentation.

enekomartinmartinez commented 1 year ago

Hi @rogersamso with dim1, dim2, and dim3 I was meaning full subscript ranges, like

dim1: A,B,C
dim2: D,E
dim3: F,G

just to check if the final dimensions after doing the power are correctly ordered or transposed.