[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #46349] dblquad/triplequad - periodic function
From: |
Nicholas Jankowski |
Subject: |
[Octave-bug-tracker] [bug #46349] dblquad/triplequad - periodic functions over the whole period |
Date: |
Tue, 21 Mar 2017 12:10:09 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:51.0) Gecko/20100101 Firefox/51.0 |
Follow-up Comment #10, bug #46349 (project octave):
looking at the integrators and came across this. in 4.2.1 dblquad works
quickly for all but quadcc on the test in Comment #1. It actually does finish
with quadcc, but takes quite some time. since quadcc is the default, dblquad
without specifying the integrator takes a long time.
>> tic;dblquad(@(x,y) sin(2 * pi * x ) * sin(2 * pi * y),0,1,0,1, [],
'quadgk');toc
Elapsed time is 0.188 seconds.
>> tic;dblquad(@(x,y) sin(2 * pi * x ) * sin(2 * pi * y),0,1,0,1, [],
'quadv');toc
Elapsed time is 0.072 seconds.
>> tic;dblquad(@(x,y) sin(2 * pi * x ) * sin(2 * pi * y),0,1,0,1, [],
'quadl');toc
Elapsed time is 0.0909998 seconds.
>> tic;dblquad(@(x,y) sin(2 * pi * x ) * sin(2 * pi * y),0,1,0,1, [],
'quadcc');toc
Elapsed time is 49.752 seconds.
>> tic;dblquad(@(x,y) sin(2 * pi * x ) * sin(2 * pi * y),0,1,0,1);toc
Elapsed time is 48.5679 seconds.
so it's incorrect to say that it doesn't terminate, but a factor of 200-300x
in computation time is surely not ideal.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?46349>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Octave-bug-tracker] [bug #46349] dblquad/triplequad - periodic functions over the whole period,
Nicholas Jankowski <=