Re: Question - Function Definition
- To: mathgroup at smc.vnet.net
- Subject: [mg63706] Re: Question - Function Definition
- From: Peter Pein <petsie at dordos.net>
- Date: Tue, 10 Jan 2006 04:50:33 -0500 (EST)
- References: <dpvn16$m16$1@smc.vnet.net>
- Sender: owner-wri-mathgroup at wolfram.com
actuary at mchsi.com schrieb:
> Hello:
>
> I'm working my way through the text "A Course in Computational Number
> Theory". A function in the text is defined in the following manner
> xxx[a_Integer,b_Integer,c_List,d_: Infinity]:= yyyyyyyy.
>
> What does ":Infinity" do in "d_: Infinity"
>
> Thanks
>
> Larry
>
Hi Larry,
this means, you don't have to specify d, when calling xxx. If you don't
specify it (by calling, say xxx[1,2,{3,4}]), Mathematica assumes you want
Infinity.
See section 2.3.10 in the Mathematica book.
Peter