Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

What would this math look like as code?

Asked by 4 years ago
Edited 4 years ago

Please provide more explanation in your question. If you explain exactly what you are trying to accomplish, it will be much easier to answer your question correctly.

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

0
I'm a little confused, can you try to break it down more? AntoninFearless 622 — 4y

2 answers

Log in to vote
0
Answered by 4 years ago

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.
Ad
Log in to vote
0
Answered by 4 years ago

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.

0
im trying to make a basic neural network in roblox that can predict sales which i input into a gui back7776 4 — 4y

Answer this question