bugGNU Octave - Bugs: bug #67156, (symbolic) If an integral is not...

 
 

bug #67156: (symbolic) If an integral is not exist, eval() function may return -4

Submitter:  Yu Hongbo <yuhongbo>
Submitted:  Sat 24 May 2025 01:05:50 PM UTC
   
 
Category:  Octave Package Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Incorrect Result
Status:  None 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

Sat 24 May 2025 01:05:50 PM UTC, original submission:  

The \(\int_4^{20}{ \frac{ {\rm tan}x}{ {\rm ln}(x^2-3)} }{\rm d}x\) is not exist.

function [text_result, numeric_result] = func78(limit1, limit2)
    pkg load symbolic;
    x = sym('x');
    f = int((tan(x) / log(x^2 - 3)), x, limit1, limit2);
    text_result = ["\n", disp(f)];
    numeric_result = eval(f);
endfunction

>> [text_result, numeric_result] = func78(4, 20)

Waiting........
text_result =
     20
     ⌠
    ⎮    tan(x)
    ⎮  ─────────── dx
    ⎮     ⎛ 2    ⎞
    ⎮  log⎝x  - 3⎠
    ⌡
    4

numeric_result = -4

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 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

    No changes have been made to this item

    Back to the top

    Powered by Savane 3.16-a7ba.
    Corresponding source code