Anonymous user
Vector products: Difference between revisions
Add output of example
m (→{{header|AutoHotkey}}: formatting) |
(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}}==
|