Mathematica 9 is now available
Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2007
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2007

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

Search the Archive

Default value

  • To: mathgroup at smc.vnet.net
  • Subject: [mg74850] Default value
  • From: "Bruno Campanini" <BC at gmail.com>
  • Date: Sun, 8 Apr 2007 05:05:18 -0400 (EDT)

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: Re: (Not trivial) Definite Integration of a rational function
  • Next by Date: Re: listdensityplot, black box?
  • Previous by thread: Re: Plot a simple function
  • Next by thread: Re: Default value