Re: what's wrong with these expressions?
- To: mathgroup at smc.vnet.net
- Subject: [mg104638] Re: [mg104606] what's wrong with these expressions?
- From: dushanm at spinn.net
- Date: Thu, 5 Nov 2009 03:52:16 -0500 (EST)
- References: <200911040641.BAA09061@smc.vnet.net>
DrMajorBob writes:
> No problem here:
>
> {Subscript[n, p][z_],
> Subscript[n, m][z_]} := {{p1[z], p2[z], p3[z]}, {m1[z], m2[z],
> m3[z]}}
>
> {Null, Null}
>
> (* testing *)
> {Subscript[n, p][z], Subscript[n, m][z]}
>
> {{p1[z], p2[z], p3[z]}, {m1[z], m2[z], m3[z]}}
>
> {Subscript[nn, p][z_],
> Subscript[nn, m][z_]} := {Outer[Times, Subscript[n, p][z],
> Subscript[n, p][z]],
> Outer[Times, Subscript[n, m][z], Subscript[n, m][z]]}
>
> {Null, Null}
>
> (* testing *)
> {Subscript[nn, p][z], Subscript[nn, m][z]}
>
> {{{p1[z]^2, p1[z] p2[z], p1[z] p3[z]}, {p1[z] p2[z], p2[z]^2,
> p2[z] p3[z]}, {p1[z] p3[z], p2[z] p3[z], p3[z]^2}}, {{m1[z]^2,
> m1[z] m2[z], m1[z] m3[z]}, {m1[z] m2[z], m2[z]^2,
> m2[z] m3[z]}, {m1[z] m3[z], m2[z] m3[z], m3[z]^2}}}
>
> Bobby
Okay, so it worked on your system but not on mine.
Why? I'm not sure what I'm supposed to have learned from this.
- Dushan
> On Wed, 04 Nov 2009 00:41:31 -0600, dushan <dushanm at spinn.net> wrote:
>
>> I defined two 3-D vector functions,
>> {Subscript[n,p][z_], Subscript[n,m][z_]} := {{p1[z],p2[z],p3[z]},
>> {m1[z],m2[z],m3
>> [z]}}
>> where p? and m? are simple functions of z. When displayed they appear
>> as expected. But when I tried to define the dyadics
>> {Subscript[nn,p][z_], Subscript[nn,m][z_]} :=
>> {Outer[Times, Subscript[n,p][z], Subscript[n,p]
>> [z]],
>> Outer[Times, Subscript[n,m][z], Subscript[n,m]
>> [z]]}
>> I got the error message that the expression 'is incomplete, more input
>> is needed'.
- References:
- what's wrong with these expressions?
- From: dushan <dushanm@spinn.net>
- what's wrong with these expressions?