MathGroup Archive 1996

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

Search the Archive

Re: Re: Argument types

  • To: mathgroup at smc.vnet.net
  • Subject: [mg5496] Re: [mg5362] Re: [mg5345] Argument types
  • From: Allan Hayes <hay at haystack>
  • Date: Sat, 14 Dec 1996 19:26:03 -0500
  • Sender: owner-wri-mathgroup at wolfram.com

Andrei Constantinescu <constant at athena.polytechnique.fr>
[mg5362] Re:  [mg5345] Argument types

Writes

> --- a way to pass options for example in function defined
> as:
>
>    f[ funct_ , opt___ ] := Plot[ funct[x], {x, 0, 10} , opt ]

Andrei,

Safer is:

f[ funct_ , opt___?OptionQ ] := Plot[ funct[x], {x, 0, 10} , opt ]

Allan Hayes
hay at haystack.demon.co.uk
http:/www.haystack.demon.co.uk


  • Prev by Date: Re: Inverse????
  • Next by Date: Re: Inverse????
  • Previous by thread: Re: Argument types
  • Next by thread: Re: 3D data plot