MathGroup Archive 2001

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

Search the Archive

Re: Functions with Options

  • To: mathgroup at smc.vnet.net
  • Subject: [mg31992] Re: Functions with Options
  • From: "Mikael Persson" <lillpele79 at hotmail.com>
  • Date: Sun, 16 Dec 2001 03:44:27 -0500 (EST)
  • References: <9vdtc6$55k$1@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

Hi!

Add an extra _. That is

newPlot[f_, {x_, min_, max_}, opts___] := Plot[f, {x, min, max}, opts]

Three _'s means that it also allow no options.

Goodluck / Micke P


  • Prev by Date: Eigenvalue Problem
  • Next by Date: Re: Can I clear all vaiables ?
  • Previous by thread: RE: Functions with Options
  • Next by thread: ShowProgress in NonlinearFit