MathGroup Archive 2000

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

Search the Archive

Default values / optional parameters

  • To: mathgroup at
  • Subject: [mg22053] Default values / optional parameters
  • From: Hermann Klocker <h.klocker at>
  • Date: Fri, 11 Feb 2000 02:38:36 -0500 (EST)
  • Sender: owner-wri-mathgroup at

[Contact the author to obtain the notebook mentioned - moderator]

The sample notebook shows how two functions defined in a very similar 
manner behave differently when using optional parameters. Question: How 
can I define a function whose optional parameter is a pattern requiring 
a specific head and has a given default value? Help says this is x_h:v 
but my example says that this does not work in some cases.

Dr. Hermann Klocker   Phone/Fax: +43-5672-65724
                      Mobile: +43-676-480 57 67
Gymnasiumstrasse 5/5, A-6600 Reutte, AUSTRIA
mailto:h.klocker at

  • Prev by Date: Re: How do I force Log[Exp[x]]=x
  • Next by Date: Re: EPS Bounding Box
  • Previous by thread: Perl module emulating Mathematica
  • Next by thread: Re: Default values / optional parameters