The Math Forum

Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.

Math Forum » Discussions » sci.math.* » sci.math

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: Numerical integration of a parametric function
Replies: 2   Last Post: Jun 16, 1996 12:11 AM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Scott J. McCaughrin

Posts: 10
Registered: 12/12/04
Re: Numerical integration of a parametric function
Posted: Jun 15, 1996 8:01 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

In a previous article, (Michael Kolios) says:

>I would like to numerically integrate something that looks like:
>int( theta * cos(nr) * dr, r=0..1)
>where I know theta(x) and r(x) and thus theta as a function of r is
>given parametrically by the mentioned two functions.
>The problem is that the "n" in the cosine term of the integrand becomes
>very large in this finite interval and thus to evaluate this I use
>special fortran routines that handle oscillatory integrals (e.g. dqawoe
>from slatec). Invariably, all of these routines require I specify the
>function (theta) non-parametrically.

So don't use them. If nr > 2pi, then nr = Q*2pi + R, 0<=R<2pi, Q integer;
cos(nr) = cos(Q*2pi + R) = cos(Q*2pi)cos(R) - sin(Q2pi)sin(R)
= cos(R).
Find R = Remainder(nr,2pi)
and apply cosine to R.

Best Regards,

Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.