First time here? Check out the FAQ!

Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

asked 9 years ago

dr gravatar image

scalar^[vector]?

I feel really stupid like this should be obvious, but I can't figure out how to do it.

v = vector([1,2,3])
2^v

shouldn't this give me

[2, 4, 8]

I can't find any other way to do this without writing a function.

click to hide/show revision 2
No.2 Revision

scalar^[vector]?

I feel really stupid like this should be obvious, but I can't figure out how to do it.

v = vector([1,2,3])
2^v

shouldn't this should give me

[2, 4, 8]

I can't find any other way to do this without writing a function.