|
[Date Index]
[Thread Index]
[Author Index]
Re: Default value
- To: mathgroup at smc.vnet.net
- Subject: [mg74874] Re: [mg74850] Default value
- From: Bob Hanlon <hanlonr at cox.net>
- Date: Mon, 9 Apr 2007 06:15:54 -0400 (EDT)
- Reply-to: hanlonr at cox.net
f[i_, m_] := f[i, m, i];
f[i_, m_, iv_] := ...
Bob Hanlon
---- Bruno Campanini <BC 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
>
Prev by Date:
Can Maximize return a function
Next by Date:
Re: Default value
Previous by thread:
Default value
Next by thread:
Re: Default value
|