Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scalar * Vector doesn't work #131

Closed
Joe7M opened this issue Nov 12, 2021 · 0 comments · Fixed by #137
Closed

Scalar * Vector doesn't work #131

Joe7M opened this issue Nov 12, 2021 · 0 comments · Fixed by #137

Comments

@Joe7M
Copy link
Contributor

Joe7M commented Nov 12, 2021

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

chrisws added a commit to chrisws/SmallBASIC that referenced this issue Jan 14, 2022
chrisws added a commit to chrisws/SmallBASIC that referenced this issue Jan 14, 2022
@chrisws chrisws mentioned this issue Apr 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant