WeBWorK Main Forum

Evaluate a multi-dimensional formula at a point

Re: Evaluate a multi-dimensional formula at a point

by Davide Cervone -
Number of replies: 0
To get the coordinates of a vector, you can do either
    ($x,$y,$z) = $v->value;
as in the example above, or you can get individual coordinates (by number) as
    $x = $v->extract(1);
    $y = $v->extract(2);
    $z = $v->extract(3);
Davide