Services & Resources / Wolfram Forums
MathGroup Archive
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2006

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

Search the Archive

Not accepting function as parameter

  • To: mathgroup at
  • Subject: [mg71681] Not accepting function as parameter
  • From: "wooks" <wookiz at>
  • Date: Sun, 26 Nov 2006 03:49:16 -0500 (EST)

This is a piece of experimental code. The function happy does not
evaluate whenever I pass f as a parameter as in the example below.

happy[ f_Function, a_Integer, b_Integer] := Module[{width = (b -

happy[ Sin, 1, 21]

I'd be grateful for help.

  • Prev by Date: Re: Nonlinear Regression
  • Next by Date: Re: Area of ellipse between major axis and ray through focus, given angle
  • Previous by thread: TraceDialog
  • Next by thread: Re: Not accepting function as parameter