- To: mathgroup at smc.vnet.net
- Subject: [mg74867] small question
- From: "KFUPM" <hussain.alqahtani at gmail.com>
- Date: Mon, 9 Apr 2007 06:12:17 -0400 (EDT)
Dear Group I have two variables multiplied by each other N1 x (N1 times x) which is a part of an equation. What i want to do is to replace this multiplication by Nx1 (one variable) and i want to do this automatically using Mathematica, because i have a huge number of such terms, for example, N2 y, N3 z, N4 x, N5 y.... etc. Thereofore, i need to get this transformation: N1 x ------> Nx1 N2 y ------> Ny2 N3 z ------> Nz3 and so on. Please notice that the letter N doesn't change only numbers(1,2,...) and (x,y,z....) do. Any help in this regard is highly appreciated.