Re: undefined function
- To: mathgroup at smc.vnet.net
- Subject: [mg95330] Re: undefined function
- From: dh <dh at metrohm.com>
- Date: Thu, 15 Jan 2009 06:14:20 -0500 (EST)
- References: <gkkf6v$gsr$1@smc.vnet.net>
Hi Cetin,
obviously you must tell Mathematica that the output of your "direction" is a
tensor. You e.g. may define:
Direction[x_]:=Array[G,{3,3}]
with this:
epp=f0 landmap direction[sigma];
epp[[1,1]]
gives: f0 landmap G[1, 1]
hope this helps, Daniel
Cetin Haftaoglu wrote:
> Dear users,
>
>
>
> I want to use an undefined function in an expression like:
>
>
>
> epp = f0 lamdap direction[sigma =96 X]
>
>
>
> where f0, lamdap are scalar values and direction[sigma =96 X] is an undefined
> function, but the result of this function is a second order tensor
> (3x3-matrix).
>
> How can I define this function?
>
> Later I must take the elements of epp ( yp[1] = epp[[1,1]]) and follow up
> with this. When I try it now I get the error-message:
>
>
>
> Part::partd : Part specification <<1>> is longer than depth of object.
>
>
>
> Thanks in Advance,
>
>
>
> Regards
>
>
>
> Cetin Haftaoglu
>
> Arbeitsgruppe " Modellierung und Simulation in der Werkstoffmechanik"
>
> BAM =96 Bundesanstalt f=FCr Materialforschung und -pr=FCfung
> Fachgruppe V.2 =96Werkstoffmechanik
>
>
>
> Unter den Eichen 87
>
> D-12205 Berlin
>
> Deutschland
>
>
>
> Tel: +49-30-8104-3194
>
> Fax: +49-30-8104-1527
>
> Email: <mailto:cetin.haftaoglu at bam.de> cetin.haftaoglu at bam.de
>
> Web: www.bam.de
>