Explore BrainMass

Mathematica Problem

A) The magnitude of a vector can in general be define as A = (A.A)^1/2.
Write a function which finds the magnitude of a general vector using Mathematica.

b) Using the definition of the dot product A·B = A B cos(θ), and your function in part a), write a function to find the angle in degrees between two vectors of equal length of any length. Test this with a couple of examples.

Note: show the answer in PDF format..please use Mathmatica 6 or 5.2.

The function is (e^-(x-a)^2((x-a)^2-(x-a)^3)) the integers 2 and 3 following (x-a) are exponents not coefficients.

Solution Summary

Step by step method for solving a problem in mathematica is given in the answer.