Jump to content

Vector products: Difference between revisions

Add output of example
(Add output of example)
Line 2,412:
writeln("a x(b x c) = " <& vectorTriple(a, b, c));
end func;</lang>
 
{{output}}
<pre>
a = (3.0, 4.0, 5.0), b = (4.0, 3.0, 5.0), c = (-5.0, -12.0, -13.0)
a . b = 49.0
a x b = (5.0, 5.0, -7.0)
a .(b x c) = 6.0
a x(b x c) = (-267.0, 204.0, -3.0)
</pre>
 
=={{header|Tcl}}==
Cookies help us deliver our services. By using our services, you agree to our use of cookies.