Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

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.

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.