Mathematica 9 is now available
Student Support Forum
-----
Student Support Forum: 'Collecting terms in an expression' topicStudent Support Forum > General > "Collecting terms in an expression"

< Previous CommentHelp | Reply To Comment | Reply To Topic
Author Comment/Response
Bill Simpson
09/14/12 03:31am

In Response To 'Re: Re: Re: Re: Re: Re: Re: Collecting terms in...'
---------
In your verbal description you give this problem:

In[1]:= expr=Exp[a Fx[1]^2+a Fy[1]^2+a Fz[1]^2+b Fx[2]^2+b Fy[2]^2+b Fz[2]^2+c Fx[3]^2+c Fy[3]^2+c Fz[3]^2];
expr//.v_*Fx[c_]^2+v_*Fy[c_]^2+v_*Fz[c_]^2->v*F[c]^2

Out[2]= E^(a*F[1]^2 + b*F[2]^2 + c*F[3]^2)

and that gives the answer you describe.

In your image you give:

In[3]:= expr=Exp[-1/2 x[1]^2- x[2]^2/3-x[3]^2/4-y[1]^2/2-y[2]^2/3-y[3]^2/4-z[1]^2/2-z[2]^2/3-z[3]^2/4];
expr//.v_*x[c_]^2+v_*y[c_]^2+v_*z[c_]^2->v*F[c]^2

Out[4]= E^(-1/2F[1]^2 - F[2]^2/3 - F[3]^2/4)

URL: ,

Subject (listing for 'Collecting terms in an expression')
Author Date Posted
Collecting terms in an expression Sami 09/02/12 3:01pm
Re: Collecting terms in an expression Bill Simpson 09/03/12 11:34pm
Re: Re: Collecting terms in an expression Sami 09/04/12 12:48pm
Re: Re: Re: Collecting terms in an expression Bill Simpson 09/04/12 10:29pm
Re: Re: Re: Re: Collecting terms in an expression Sami 09/06/12 00:45am
Re: Re: Re: Re: Re: Collecting terms in an expr... Bill Simpson 09/06/12 11:36am
Re: Re: Re: Re: Collecting terms in an expression Sami 09/06/12 01:14am
Re: Re: Re: Re: Re: Collecting terms in an expr... Bill Simpson 09/07/12 2:57pm
Re: Re: Re: Re: Re: Re: Collecting terms in an ... Sami 09/08/12 03:26am
Re: Re: Re: Re: Re: Re: Re: Collecting terms in... Sami 09/11/12 8:12pm
Re: Re: Re: Re: Re: Re: Re: Re: Collecting term... Bill Simpson 09/14/12 03:31am
< Previous CommentHelp | Reply To Comment | Reply To Topic