So i've been trying to make this into code, but i can't understand how since i saw Summatory was like a for loop which had i as index and make it go from m to n (1 to 100 or 1 to any number)
And this one doesn't have that of index or m,n
? E*W
I tried it like this
E*(EO1*W3)
cause i thought it just represented that it was a summation
The *
thing is a multiply. Basically it multiplies numbers. It works like normal multiplication.
print(tostring(2*7)) -- converts the number to a string. 2x7 = 14.
From what I could gather, it looks like you're trying to do a numeric for loop, that starts at 1 number, goes to another number, by an incrementor?
To do this, like I said, you would use a Numeric For Loop.
for Constant_Var = Beginning_Var, Ending_Var, Incrementing_Var do end
So, an example would be...
for num = 1,100,1 do print(num) --// 1,2,3,4,5,6,7,8,9... end
Hoped this helped! If it did, don't forget to mark this as an answer!
If it didn't, please be more descriptive on what you're trying to achieve.