bugGNU Octave - Bugs: bug #58988, typing pi at command line returns ...

 
 

bug #58988: typing pi at command line returns ans = 3.1416

Submitter:  Michael Godfrey <godfrey>
Submitted:  Fri 21 Aug 2020 03:41:08 PM UTC
   
 
Category:  Documentation Severity:  2 - Minor
Priority:  5 - Normal Item Group:  Incorrect Result
Status:  Fixed Assigned to:  None
Originator Name:  godfrey Open/Closed:  * Closed
Release:  * dev Operating System:  * GNU/Linux
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Wed 26 Aug 2020 05:39:53 PM UTC, comment #1: 

I pushed the following changeset on stable and merged with default:

http://hg.savannah.gnu.org/hgweb/octave/rev/bb0ca2753bc2

Closing as fixed.

John W. Eaton <jwe>
Group administrator
Fri 21 Aug 2020 03:41:08 PM UTC, original submission:  

The Manual in Section 14.1. states that builtin variables such
as pi  return:
 
pi = 3.1416

but they in fact return:
octave:1> pi
ans = 3.1416

or

octave:1> e
ans = 2.7183

I think that the current behavior has been true for quite
a long time, but the Manual definition might be better?

But, Matlab 2020a returns using ans = so for Matlab compatibility the current Octave behavior is correct, but the Manual needs correction.

Michael Godfrey <godfrey>
Group Member

 

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

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by jwe (Posted a comment)
  • -email is unavailable- added by godfrey (Submitted the item)
  •  

    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.

     

    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2020-08-26 jwe StatusNone Fixed
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-4b48.
    Corresponding source code