Vector products: Difference between revisions
Content deleted Content added
→{{header|Mathematica}}: output? |
Task description loosened without invalidating current solutions. See talk page. |
||
Line 16: | Line 16: | ||
# Create a named function/subroutine/method to compute the dot product of two vectors. |
# Create a named function/subroutine/method to compute the dot product of two vectors. |
||
# Create a function to compute the cross product of two vectors. |
# Create a function to compute the cross product of two vectors. |
||
# |
# Optionally create a function to compute the scalar triple product of three vectors. |
||
# |
# Optionally create a function to compute the vector triple product of three vectors. |
||
# Compute and display: <code>a • b</code> |
# Compute and display: <code>a • b</code> |
||
# Compute and display: <code>a x b</code> |
# Compute and display: <code>a x b</code> |