Write an expression in a specific form
- To: mathgroup at smc.vnet.net
- Subject: [mg107952] Write an expression in a specific form
- From: Ares Lagae <ares.lagae at sophia.inria.fr>
- Date: Thu, 4 Mar 2010 05:24:31 -0500 (EST)
Hi all, I am a beginner in Mathematica, and I have the following "problem": How can I write an expression in a specific form? For example: - Define a Gaussian: G[m_, s_, x_] := (1/(s*Sqrt[2*Pi]))*Exp[-(x - m)^2/(2*s^2)]; - Product of two Gaussians: G[m1, s1, x] * G[m2, s2, x] - How can I get Mathematica to write the result in terms of c * G[m_, s_, x_]? I.e., get the values for c, m and s. Thanks, Ares Lagae