MathGroup Archive 2001

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

Search the Archive

Functions with Options

  • To: mathgroup at
  • Subject: [mg31972] Functions with Options
  • From: guillerm at
  • Date: Fri, 14 Dec 2001 16:53:00 -0500 (EST)
  • Sender: owner-wri-mathgroup at

I would like build functions with Options calling Mathematica functions with 
the same options.

Here is a naïf example 

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

But it doesn`t work.

newPlot[Sin[x], {x, 0 , 2 Pi}, Axes -> False, AspectRatio -> Automatic]

newPlot[Sin[x], {x, 0 , 2 Pi}]


This message was sent using Endymion MailMan.

  • Prev by Date: Can I clear all vaiables ?
  • Next by Date: Re: Bump Function
  • Previous by thread: Re: Can I clear all vaiables ?
  • Next by thread: Functions with Options