bugGNU Octave - Bugs: bug #67158, (symbolic) When a multiple...

 
 

bug #67158: (symbolic) When a multiple integral is a defect integral, int() function may throw an error

Submitter:  Yu Hongbo <yuhongbo>
Submitted:  Sat 24 May 2025 02:10:01 PM UTC
   
 
Category:  None Severity:  3 - Normal
Priority:  5 - Normal Item Group:  None
Status:  Need Info Assigned to:  None
Originator Name:  Open/Closed:  * Open
Release:  * 8.4.0 Operating System:  * GNU/Linux
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Post a Comment

Add a New Comment Rich Markup
   

Discussion

Fri 19 Sep 2025 11:09:56 AM UTC, comment #4: 

I dont know what the equivalent Python code should be, or I can run the eqivalent Python code to test it.

Yu Hongbo <yuhongbo>
Tue 09 Sep 2025 04:06:29 PM UTC, comment #3: 

Is this a bug in the API between Octave and Python?  Or is it that Python doesn't implement this code sequence?  If it is a bug in Python then it should be reported there.

One test would be to create the equivalent code in Python and see if it completes.

Rik <rik5>
Group administrator
Sat 24 May 2025 02:19:36 PM UTC, comment #2: 

I have a typo in the title. Correct here:
(symbolic) When a multiple integral is a defect integral, int() function may throw an error

Yu Hongbo <yuhongbo>
Sat 24 May 2025 02:14:06 PM UTC, comment #1: 

I have a typo in the original submission. Correct here:
Let \(\Omega=\{(x, y, z)|(x, y)\in D, {\rm ln}(x+y)\leq z\leq (x+y)^3\}\), let \(D=\{(x, y)|1\leq x\leq10, {\rm ln}x\leq y\leq x^3\}\), solve \(\iiint_{\Omega}{(x^2+y^2+z^2)}{\rm d}x{\rm d}y{\rm d}z\).

Yu Hongbo <yuhongbo>
Sat 24 May 2025 02:10:01 PM UTC, original submission:  

Let \(\Omega=\{(x, y, z)|(x, y)\in D, (x+y)\leq z\leq (x+y)^3\}\), let \(D=\{(x, y)|1\leq x\leq10, {\rm ln}x\leq y\leq x^3\}\), solve \(\iiint_{\Omega}{(x^2+y^2+z^2)}{\rm d}x{\rm d}y{\rm d}z\).

function [text_result, numeric_result] = func82()
    pkg load symbolic;
    x = sym('x');
    y = sym('y');
    z = sym('z');
    result = x^2 + y^2 + z^2;
    result = int(result, z, log(x + y), (x + y)^3);
    result = int(result, y, log(x), x^3);
    result = int(result, x, 1, 10);
    text_result = ["\n", disp(result)];
    numeric_result = eval(result);
endfunction

>> [text_result, numeric_result] = func82()

error: Python exception: TypeError: '>' not supported between instances of 'Poly' and 'int'
    occurred at line 2 of the Python code block:
    F = sp.integrate(f, (x, a, b))
error: called from
    pycall_sympy__ at line 179 column 7
    int at line 138 column 7
    func82 at line 17 column 12

Yu Hongbo <yuhongbo>

 

Attached Files

This item currently has no attached files.

(Note: upload size limit is set to 4.0MiB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

 

Dependencies

This item does not depend on any other items.

No items depend on this one.

 

Mail Notification Carbon-Copy List

Carbon-Copy List
  • -email is unavailable- added by rik5 (Updated the item)
  • -email is unavailable- added by yuhongbo (Submitted the item)
  •  

    Votes

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

    History

    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2025-09-09 rik5 StatusNone Need Info
    2025-09-09 rik5 Summary(symbolic) When a multiple integral is a cauchy integral, int() function may throw an error (symbolic) When a multiple integral is a defect integral, int() function may throw an error

    Back to the top

    Powered by Savane 3.16-a7ba.
    Corresponding source code