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 Comment | Next Comment >Help | Reply To Comment | Reply To Topic
Author Comment/Response
Sami
09/11/12 8:12pm

In Response To 'Re: Re: Re: Re: Re: Re: Collecting terms in an ...'
---------
Hi guys,
Could anyone help me with this please?

After trying Bill's suggestion, I tried this one, but didn't work either.
prob = expr //. ((_[t_]^2) ..) -> F[t]^2 //. F_[i_]^2 -> F[i]^2*(1/3)

I have attached the nb image.

Just to summarize the question:

What I have:
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];

What I need:
prob= Exp[ a*F[1]^2 + b*F[2]^2 + c*F[3]^2 ]


Thanks indeed.

Attachment: simplify.png, 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 Comment | Next Comment >Help | Reply To Comment | Reply To Topic