MathGroup Archive 2007

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

Search the Archive

Re: Default value

  • To: mathgroup at smc.vnet.net
  • Subject: [mg74878] Re: Default value
  • From: "Szabolcs" <szhorvat at gmail.com>
  • Date: Mon, 9 Apr 2007 06:17:58 -0400 (EDT)
  • References: <evabdq$dav$1@smc.vnet.net>

On Apr 8, 11:08 am, "Bruno Campanini" <B... at gmail.com> wrote:
> I have a function   f [ i_, m_, iv_ ]  and would like
> to have a default value for iv equal to i.
>
> I neither can write   f [ i_, m_, iv_: i_ ], nor   f [ i_, m_, iv_ : i ]
> ans the error "Default value for iv_ contains a pattern" arises.
>
> Any workaround?
>
> Bruno

f[i_, m_, iv_] := (definition)
f[i_, m_] := f[i, m, i]



  • Prev by Date: Re: Default value
  • Next by Date: Re: Default value
  • Previous by thread: Re: Default value
  • Next by thread: Re: Default value