MathGroup Archive 1995

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

Search the Archive

Function parameters, using : and ?

  • To: mathgroup at
  • Subject: [mg2813] Function parameters, using : and ?
  • From: rmarimon at (Ricardo Marimon)
  • Date: Wed, 20 Dec 1995 01:15:39 -0500
  • Organization: Stanford University

Hi!  Is there a way of using the default pattern(:) and the match(?)
pattern for the same argument in a function?  I'm interested in writting
something like this

   Func[x_List, y_List, epsilon_(?NumberQ):10^-6] := Module[{},...]

but I can't get it to work.  What is the problem? I must have tried all
the different combinations of the charaters _?: without success.  Any

- Ricardo Marimon
  rmarimon at

  • Prev by Date: Re: ParametricPlot3D
  • Next by Date: Mathlink & Macintosh & CodeWarrior
  • Previous by thread: Re: Function?
  • Next by thread: Re: Function parameters, using : and ?