Mathematica 9 is now available
Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2009

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Re: what's wrong with these expressions?

  • To: mathgroup at smc.vnet.net
  • Subject: [mg104658] Re: [mg104638] Re: [mg104606] what's wrong with these expressions?
  • From: DrMajorBob <btreat1 at austin.rr.com>
  • Date: Fri, 6 Nov 2009 05:15:35 -0500 (EST)
  • References: <200911040641.BAA09061@smc.vnet.net>
  • Reply-to: drmajorbob at yahoo.com

You got me. What am I supposed to learn from it?

Bobby

On Thu, 05 Nov 2009 02:52:16 -0600, <dushanm at spinn.net> wrote:

> 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'.
>


-- 
DrMajorBob at yahoo.com


  • Prev by Date: Re: remote kernel trouble
  • Next by Date: Re: Re: Re: Finding Clusters
  • Previous by thread: Re: what's wrong with these expressions?
  • Next by thread: Re: what's wrong with these expressions?