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

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

[Octave-bug-tracker] [bug #57614] quadgk integrates complex paths in rev


From: Rik
Subject: [Octave-bug-tracker] [bug #57614] quadgk integrates complex paths in reverse direction to specified "Waypoints"
Date: Thu, 16 Jan 2020 18:31:41 -0500 (EST)
User-agent: Mozilla/5.0 (Windows NT 10.0; WOW64; Trident/7.0; rv:11.0) like Gecko

URL:
  <https://savannah.gnu.org/bugs/?57614>

                 Summary: quadgk integrates complex paths in reverse direction
to specified "Waypoints"
                 Project: GNU Octave
            Submitted by: rik5
            Submitted on: Thu 16 Jan 2020 03:31:39 PM PST
                Category: Octave Function
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Incorrect Result
                  Status: Confirmed
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: dev
        Operating System: Any

    _______________________________________________________

Details:

quadgk performs path integrals in reverse which results in a change of sign
for the output.

Sample integration


fun = @(z) exp(z)./z;
C = [1+i -1+i -1-i 1-i];
q2 = integral(fun,1,1,'Waypoints',C)
q2 = -9.8879e-17 - 6.2832e+00i


Exact result is


2*pi*i







    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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