Re: writing tensor in mathematica
- To: mathgroup at smc.vnet.net
- Subject: [mg131918] Re: writing tensor in mathematica
- From: W Craig Carter <ccarter at MIT.EDU>
- Date: Tue, 29 Oct 2013 02:51:18 -0400 (EDT)
- Delivered-to: l-mathgroup@mail-archive0.wolfram.com
- Delivered-to: l-mathgroup@wolfram.com
- Delivered-to: mathgroup-outx@smc.vnet.net
- Delivered-to: mathgroup-newsendx@smc.vnet.net
- References: <20131029032255.E702C6A27@smc.vnet.net>
Dear Dhaneshwar,
I believe this may be what you are looking for:
avec = Array[a, 3]
bvec = Array[b, 3]
ctens = Array[c, {3, 3, 3, 3}]
ab[j_, k_] :=
Sum[avec[[i]] ctens[[i, j, k, m]] bvec[[m]], {i, 1, 3}, {m, 1, 3}]
This may be enough to get you started, but there is also documentation for tensors (type tensor into the help browser) in the documentation.
Kind Regards,
W Craig Carter
On Oct 28, 13, at 20:22 PM, Dhaneshwar Mishra wrote:
> Hi
>
> I am Dhaneshwar Mishra, new to the Mathematica.
>
> I would like to write
>
> [ab]_(jk) = a_i [C_(ijkm)] b_m
>
> in the matrix form, where I,j,k, m varies from 1 to 3. Being a new user, I find
>
> little difficult to find proper help from the Mathematica documentations.
>
> Please suggest me appropriate reading materials so that I can take help of that as well.
>
> Thanks in advance.
>
> With regards
>
> Dhaneshwar
>
- References:
- writing tensor in mathematica
- From: Dhaneshwar Mishra <dhaneshwarmishra@gmail.com>
- writing tensor in mathematica