Back to functions

vecset


vector set

Set an element in a vector with zero based index. Returns the modified vector.

Usage: nerdamer("vecset(v)")


Parameters

expression v a vector

Returns

Vector

EXAMPLES:
nerdamer.setVar('v', 'vector(a-r, x*x, z)');
nerdamer.setVar('v', 'vecset(v, 0, sqrt(2*g*h))');
console.log(nerdamer('v').toString());
OUTPUT:
Back to functions