MathGroup Archive 2005

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

Search the Archive

Options in user-defined functions...

  • To: mathgroup at smc.vnet.net
  • Subject: [mg60332] Options in user-defined functions...
  • From: Daniele Lupo <danwolf80_no_spam_ at libero.it>
  • Date: Tue, 13 Sep 2005 06:07:17 -0400 (EDT)
  • Sender: owner-wri-mathgroup at wolfram.com

Hi to all.

I've a little problem with a function. I've defined it in this way:

fun[x_,op1_:1,op2_:2,op3_:3]:=
Module[{....},f1[x,op1],f2[x,op2],f3[x,op3]]

So, when I use it, ops have their default values.

It works, but I'd like to use option; this why, if I want to change only
op3, I must to write every argument when I call the function, while I'd
like to write something like this:

fun[x,op3->4]

how can I do it?

Thanks for you answers

Daniele


  • Prev by Date: Announcing WolframTones
  • Next by Date: Forums opened on Mathematica-users.org
  • Previous by thread: Announcing WolframTones
  • Next by thread: Re: Options in user-defined functions...