I am trying to create a program that will allow me to select a STATLIST (L1,L2,...) as variables and take L1 value one (L1,1) times L2 value 1(L2,1). Then sum that product with all values in the function.
So in a regular function form something like
Sum[(L1,1*L1,1)+(L1,2*L2,2)+(L1,3*L1,3)+...]
This function is to calculate GDP to try and save time during my MacroEcon exam. So if anyone knows a program that will calculate basic economic functions like this given tables that would be even better.
Alright, I'm not entirely sure what you're asking for, but if my understanding is correct, it's not a difficult task.
This is how I understand your question. You need to
L₁
and L₂
)L₁
by the corresponding element in L₂
:Prompt L₁,L₂
:sum(L₁L₂