public inbox for gsl-discuss@sourceware.org
 help / color / mirror / Atom feed
From: Axel.Vogt.Muenchen@t-online.de (Axel Vogt)
To: Przemyslaw Sliwa <przemyslaw.sliwa@db.com>
Cc: gsl-discuss@sources.redhat.com
Subject: Re: Integrals
Date: Sun, 09 Jan 2005 14:47:00 -0000	[thread overview]
Message-ID: <41E14429.B9EAB571@axelvogt.de> (raw)
In-Reply-To: <OF3ACB9FDB.16FE66F6-ON80256F82.00623B9F-00256F82.0062E00B@db.com>

As nobody takes it ... just take the real part using GSL_REAL.

I guess phi is your integration variable and looking at your
adress/signature some thoughts: this is for option pricing by
applying Fourier inversion for characteristic functions f, no?

In this case the integration is over the whole positive reals
with oscillating integrand, may be non-constant periodics and
sometimes weird damping, the singularity in 0 is removable.
If you want to cover extreme sitautions as well you wish to
be very careful, even with adaptive schemes

If you not need extremly exact values you can use FFT (fast
Fourier transform) with interpolation on the grid. This has
the advantage that for (v,T fixed) you get all values for
your strike k within 1 FFT (but a notational orgy and worth
only for repeated use).

But that's just a thought ... and if i guessed wrong then
just take it as comment that you Q is somewhat vague.

Axel

Przemyslaw Sliwa wrote:
> 
> Thanks for this,
> 
> One additional question would be how to calculate the integral of a real part of a function:
> 
> exp(- 1 \phi \ln(k) f(x, v, T; \phi))
> ---------------------------------------------
>                  i\phi
> 
> I used the LaTeX notation. Can anyone help me with this?
> 
> Thanks
> 
> Przemyslaw
> 
> 
>                       Axel Hutt
>                       <Axel.Hutt@physik.hu        To:       Przemyslaw Sliwa/DMGCON/DMG UK/DeuBa@DMG UK
>                       -berlin.de>                 cc:       gsl-discuss@sources.redhat.com
>                                                   Subject:  Re: Integrals
>                       01/06/2005 05:37 PM
> 
> 
> 
> Przemyslaw Sliwa wrote:
> 
> >All,
> >                                                INF
> >                                                 /
> >I would like to know if it is possible to calculate the integral of type  I f(x)dx using gsl. If yes can someone explain me how it is done?
> >                                                /
> >                                                       -INF
> >
> >Thank you for help,
> >
> >Pshemek
> >
> >
> >
> you may take a look at
> 
> http://sources.redhat.com/gsl/ref/gsl-ref_16.html#SEC254
> 
> Hope that helps.
> 
> Axel
> 
> --
> 
> This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden.

  reply	other threads:[~2005-01-09 14:47 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-01-07 18:00 Integrals Przemyslaw Sliwa
2005-01-09 14:47 ` Axel Vogt [this message]
2005-01-10 10:00 ` Integrals Axel Hutt
2005-01-10 19:02 ` Integrals Brian Gough
     [not found] <OFA3B681E9.F1B060D2-ON80256F82.00655D62-00256F82.00656B63@db.com>
2005-01-10 10:00 ` Integrals Axel Hutt
  -- strict thread matches above, loose matches on Subject: below --
2005-01-06 17:37 Integrals Przemyslaw Sliwa
2005-01-06 17:49 ` Integrals Stewart V. Wright
2005-01-06 17:35 Integrals Przemyslaw Sliwa
2005-01-06 17:49 ` Integrals Axel Hutt
2005-01-06 17:52 ` Integrals Jerome BENOIT

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=41E14429.B9EAB571@axelvogt.de \
    --to=axel.vogt.muenchen@t-online.de \
    --cc=gsl-discuss@sources.redhat.com \
    --cc=mail@axelvogt.de \
    --cc=przemyslaw.sliwa@db.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).