You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to multiply a vector v by a scalar s. In the example below the result r is correct, but I can't access the components of r. Workaround is to do the multiplication component-wise.
dim r(2)
v = [5,0,0]
s = 2
r = s * v
print r
' -> output on the screen: [10,0,0]
print r(0)
' -> Error: Missing separator Or parenthesis