octave-bug-tracker
[Top][All Lists]
Advanced

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

[Octave-bug-tracker] [bug #58636] Integral fails to call quadgk for comp


From: Nicholas Jankowski
Subject: [Octave-bug-tracker] [bug #58636] Integral fails to call quadgk for complex integration
Date: Sat, 20 Jun 2020 17:35:33 -0400 (EDT)
User-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.106 Safari/537.36

Follow-up Comment #3, bug #58636 (project octave):

need to see if there's a way to catch complex functions. something link

integral (exp (i*x), 0, 1) evaluates to real values at the real endpoints, so
it'll sneak past the check. Also, not sure about whether there are other
not-so-obvious complex functions. even something like


>> fx = @(x) complex(x)
fx =

@(x) complex (x)

>> quadgk(fx,0,1)
ans =  0.50000
>> quadcc(fx,0,1)
error: quadcc: integrand F must return a single, real-valued vector


needs to be caught.

    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?58636>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

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