Re: List of local Variables in Module
- To: mathgroup at smc.vnet.net
- Subject: [mg16341] Re: List of local Variables in Module
- From: phbrf at t-online.de (Peter Breitfeld)
- Date: Sun, 7 Mar 1999 01:05:56 -0500
- Organization: das ist ein breites Feld ...
- References: <7bg1oh$5lm@smc.vnet.net> <7bnpm9$d1v@smc.vnet.net>
- Sender: owner-wri-mathgroup at wolfram.com
Allan Hayes <hay at haystack.demon.co.uk> schrieb:
>
> Peter Breitfeld wrote in message <7bg1oh$5lm at smc.vnet.net>...
> >
> >I want to implement a function like this:
> >
> >myFunction[f_,x_,n_Integer]:=
> > Module[Join[Array[a,n+1,0],{z,expr}],
> > <<<< some code to construct a polynomial in x of degree n with
> > coefficients a[0]...a[n] >>>>>
> >]
[--o- snip -o--]
I want to thank all who helped me to solve my problem. I now do just
myFunction[f_,x_,n_Integer]:=
Module[{a,z,expr},....
I first thought, the a[i] will be global, but they don't.
This is a very helpful usegroup. Thanks again.
es gruesst
Peter
--
=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=
Peter Breitfeld, Saulgau, Germany (PGP public key: 08548045)