[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Simple recursion problem
From: |
John W. Eaton |
Subject: |
Simple recursion problem |
Date: |
Sun, 27 Feb 2005 10:03:59 -0500 |
On 27-Feb-2005, Michal Tarana <address@hidden> wrote:
| Hi everybody,
| ^^^^^^^^^^^^^
|
| I am trying to run this simple code in Octave:
|
| function I = strangeintegral(order, b, Z)
| if (order == 0)
| result = -0.5 / sqrt(pi * b);
| I = result + 0.5 * i * sqrt(Z) * cef(-sqrt(b * Z), 20);
| else
| result = (-1.0 / (2.0 * pi)) * (b ^ (-order - 2.5)) *
| spgamma(order);
| I = result + Z * strangeintegral(order - 1, b, Z);
| endif
| endfunction
|
| But sometimes Octave crashes with Segmentation fault and I don't know,
| why. When I call this function from the commandline, sometimes Octave
| crashes.
Then that is a bug (see http://www.octave.org/bugs.html).
Please submit a complete bug report to the address@hidden list, or at
least tell us what values you are passing to your function so we might
have some hope of reproducing the problem without wasting a lot of
time guessing about how to reproduce the problem.
Thanks,
jwe
-------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.
Octave's home on the web: http://www.octave.org
How to fund new projects: http://www.octave.org/funding.html
Subscription information: http://www.octave.org/archive.html
-------------------------------------------------------------