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: Luis Kao
Subject: [Octave-bug-tracker] [bug #59403] integral2 and quad2d functions do not accurately document form of integrand function F
Date: Sat, 14 Nov 2020 04:00:34 -0500 (EST)
User-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.193 Safari/537.36

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

So I took a peek at quad2d in MATLAB. It does check if "FUN is properly
vectorized". The comment states that it would make it harder for the user
"generating an error by using matrix functions instead of elementwise
functions". I don't know if there is a reason using matrix function within
integration, but MATLAB seems to suggest users should not do that.

Also there is another thing they explicitly check about size mismatch:

++
quad2d(@(x,y) 1, 0, 1, 0, 1)
--

Octave returns value 1, while MATLAB throws an error: "Integrand output size
does not match the input size."

    _______________________________________________________

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]