Script started on Tue Nov 02 17:01:10 1999 {0}:panther:/class01/csc2311/csc6040/> ls -l csc6040* -rwx------+ 1 csc6040 csc2311 474 Sep 23 12:42 csc6040.cc -rwx------+ 1 csc6040 csc2311 3877 Oct 19 16:35 csc6040vector.cc -rwx------+ 1 csc6040 csc2311 1955 Oct 19 16:54 csc6040vector.h {0}:panther:/class01/csc2311/csc6040/> ls -l hmwk3* -rw-r--r-- 1 csc6040 csc2311 2964 Oct 19 16:38 hmwk3.cc -rw-r--r-- 1 csc6040 csc2311 453 Oct 19 16:47 hmwk3b.cc {0}:panther:/class01/csc2311/csc6040/> cat Makefile # # This file compiles the two files for you # # Call it "Makefile" # then run it with the command "make" # hmwk3: csc6040vector.o g++ hmwk3.cc -o hmwk3 csc6040vector.o csc6040vector.o: csc6040vector.cc csc6040vector.h g++ -c csc6040vector.cc {0}:panther:/class01/csc2311/csc6040/> make g++ -c csc6040vector.cc g++ hmwk3.cc -o hmwk3 csc6040vector.o {0}:panther:/class01/csc2311/csc6040/> hmwk3 The value of point0 (init. by default constructor) is (0, 0, 0) The value of point1 is (1, 3, 4) The Scalar Product of (1, 3, 4) and (3, 1, 2) is 14.0000 The Scalar Product of (4, 1, 7) and (5, 2, 9) is 85.0000 (4, 1, 7) + (5, 2, 9) = (9, 3, 16) (5, 2, 9) - (3, 1, 2) = (2, 1, 7) 3 * (9, 3, 16) = (27, 9, 48) The lengths of (3, 1, 2) and (27, 9, 48) are 3.7417 and 55.8032. The angle between (2, 1, 7) and (27, 9, 48) is 13 degrees. (2, 1, 7) is not equal to (1, 3, 4). (1, 3, 4) is equal to (1, 3, 4). {0}:panther:/class01/csc2311/csc6040/> exit script done on Tue Nov 02 17:01:56 1999