MathGroup Archive 2012

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

Search the Archive

compile a numerical integral


Hi wise people,

I am working to make a code faster using compile and failed at the very 
beginning.
Is there a way to make a version that works?

f=Compile[{u},NIntegrate[x*u,{x,0.,#}]&/@{1,2,3}]

Best,

Ruth Lazkoz



  • Prev by Date: Re: exercises: suppress printing of answers
  • Next by Date: Volumetric Opacity?
  • Previous by thread: Error(?) in FormatValues[MakeExpression]
  • Next by thread: Re: compile a numerical integral