MathGroup Archive 1997

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

Search the Archive

Re: Beware fcn[x_:0, opts___?OptionQ]

  • To: mathgroup at smc.vnet.net
  • Subject: [mg9898] Re: Beware fcn[x_:0, opts___?OptionQ]
  • From: bmarks at helix.nih.gov (William B. Marks)
  • Date: Sun, 30 Nov 1997 20:16:45 -0500
  • Sender: owner-wri-mathgroup at wolfram.com

Recenty I showed that the commonly needed fcn above does not work, but I
proposed a flawed alternative.

A  version that works is
fcn[x_, opts___?OptionsQ]
fcn[opts___?OptionsQ] := fcn[0, opts]

in the sense that

In                         out

fcn[]                      0
fcn[1]                    1
fcn[aa->"aa"]         0
fcn[1, aa->"aa"]     0
fcn[1, 2]                fcn[1, 2]

Cheers,

Bill Marks



  • Prev by Date: prograMing: simulating Level
  • Next by Date: Re: Re: Trivial integral freezes 3.0
  • Previous by thread: prograMing: simulating Level
  • Next by thread: Rearranging inequalities