Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
1996
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

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