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 1998

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

Search the Archive

Re: Computing my own function efficiently

  • To:
  • Subject: [mg11126] Re: Computing my own function efficiently
  • From: mike johnson <>
  • Date: Mon, 23 Feb 1998 21:40:45 -0500
  • Organization: LLNL
  • References: <6cgg8n$>

Tommy Nordgren wrote:
> I have a function that is defined by: f[k_,b_] := Integrate[
>         Cos[b x] Exp[-x^2]/(k^2+x^2),{x,-Infinity,Infinity}] Since Mathematica
> can't solve the integral...

Gradshteyn & Ryzhik, Table of Integrals, Series & Products, 4th ed. Sec
3.954 gives the following algebraic answer (after some change in
notation) in terms of error functions:

Pi^(3/2) Exp[k^2]/(4k)*
   (2 Cosh[b k] - Exp[-b k] Erf[k-b/2] - Exp[bk] Erf[k+b/2])

Sometimes the old ways are still useful. -- 
Michael A. Johnson, Mail Stop L-463
Lawrence Livermore Nat'l Lab
7000 East Ave., P. O. Box 808
Livermore, CA 94551
Fax: (510) 422-6007

  • Prev by Date: Re: random number generation
  • Next by Date: Possible bug in FindRoot[] in Mathematica 3.0
  • Prev by thread: Computing my own function efficiently
  • Next by thread: Re: Computing my own function efficiently