help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

quadl can't integrate sin or cos over a period


From: Adam Higuera
Subject: quadl can't integrate sin or cos over a period
Date: Tue, 8 Jul 2008 00:41:09 -0400

When I enter the command:

quadl(@sin, 0, 2*pi)

octave 3.0.1 under Fedora 9 hangs and fails to produce a result.  However,

quadl(@sin, 0, pi)

produces the correct result of 2.  Is there some reason why this case would give quadl trouble?  Or is this simply an octave bug?

As a general question, is there any workaround to pass additional parameters to the function I am integrating without using quadl (where extra parameters to quadl are passed directly to the function)?  quad lacks this functionality.

-Adam

reply via email to

[Prev in Thread] Current Thread [Next in Thread]