12 vector_x_set($w,10.0);
13 vector_y_set($w,11.0);
14 vector_z_set($w,12.0);
16 echo "I just created the following vector\n";
20 echo "\nNow I'm going to compute the dot product\n";
22 $d = dot_product($v, $w);
24 echo "dot product = $d (should be 68)\n";
26 echo "\nNow I'm going to add the vectors together\n";
29 vector_add($v, $w, $r);
33 echo "The value should be (11,13,15)\n";
35 echo "\nNow I'm going to clean up the return result\n";