MathGroup Archive 1996

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

Search the Archive

Re: Re: Argument types


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