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

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

[Octave-bug-tracker] [bug #59403] integral2 and quad2d functions do not


From: John W. Eaton
Subject: [Octave-bug-tracker] [bug #59403] integral2 and quad2d functions do not catch incorrect dimensions for matrix multiplication
Date: Tue, 3 Nov 2020 12:52:41 -0500 (EST)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Firefox/68.0

Follow-up Comment #2, bug #59403 (project octave):

I changed the example to be


function r = fxy (x, y)
  size (x), size (y),
  r = sinc (x) * sinc (y);
end
integral2 (@fxy, -1, 1, -1, 1)


and I see


ans =

   15   15

ans =

   15   15

ans =

   15   15

ans =

   15   15

ans =

   15   15

ans =

   15   15

ans =

   15   15

ans =

   15   15

ans = 12.328


So, unfortunately, the integration function has selected X, Y values that do
conform for matrix multiplication.  So I don't see how we would detect an
error here.

    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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