* (Vector)

Multiplies a vector by a number.

Arguments

vector0
is the Vector to multiply.
Real
number
to multiply by.

Return values

vector1
is the resulting Vector.

Complexity

O(dimension)

Example

"sl/algebra" useFile v1: (1.0 3.0 2.0) makeVector; v1 4.0 * .makeRange [print "," print] each
Output:
4.000000,12.000000,8.000000,