bugGNU Octave - Bugs: bug #38716, error with sin Function

 
 

bug #38716: error with sin Function

Submitter:  None
Submitted:  Fri 12 Apr 2013 02:07:56 PM UTC
   
 
Category:  Octave Package Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Other
Status:  Works For Me Assigned to:  None
Originator Name:  Chris N Originator Email:  -email is unavailable-
Open/Closed:  * Closed Release:  * 3.6.4
Operating System:  * Microsoft Windows Fixed Release:  None
Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Mon 15 Apr 2013 04:36:36 AM UTC, comment #4: 

On the octave 3.6.4 MinGW with octave-forge package,


octave:7> which Pi
'Pi' is a function from the file C:\Octave\Octave3.6.4_gcc4.6.2\lib\octave\packages\symbolic-1.1.0\i686-pc-mingw32-api-v48+\symbols.oct


As John told, Pi came from the symbolic package.

Windows binaries on MinGW with octave-forge package includes symbolic package. In one follows the instruction on the download page,

http://sourceforge.net/projects/octave/files/Octave%20Windows%20binaries/Octave%203.6.4%20for%20Windows%20MinGW%20installer/

the almost packages including symbolic package are auto loaded.


pkg rebuild -noauto symbolic


and restart the octave. Then the symbolic package will not be auto loaded.

Tatsuro MATSUOKA <tmacchant>
Fri 12 Apr 2013 05:57:41 PM UTC, comment #3: 

I think Pi comes from the symbolic package.  What does


which Pi


tell you?

Are you attempting to do symbolic computations, or do you really want to just do numerical computations?  If numerical, then use pi, not Pi, and maybe uninstall the symbolic package.

In any case, my understanding is that they symbolic package mostly does not work properly.  If you really need to do symbolic calculations, then you would probably be better off using something other than Octave.

Or perhaps you would like to help fix the symbolic package?

John W. Eaton <jwe>
Group administrator
Fri 12 Apr 2013 05:24:28 PM UTC, comment #2: 

There is a difference in my case
Pi is not undefined on Octave:4
on windows I receive the correct answer for Pi
if I call sin(Pi) i receive a silly error message.
I can reproduce the error on different machines with Octave 3.6.2 AND 3.6.4 (MINGW VERSION)
See me original submission
I can not test it on a Linux machine

Anonymous
Fri 12 Apr 2013 04:49:16 PM UTC, comment #1: 

Can't reproduce this.

Please watch case:

Octave:4> Pi
error: 'Pi' undefined near line 1 column 1
octave:4> pi
ans =  3.1416
octave:5> sin(pi)
ans =    1.2246e-16

(using dev version and 3.6.4rc1 on Linux, and 3.6.2MSVC2010 on Windows. Can't test w. 3.6.4 on Windows right now)

There is a tiny chance that this is again an occurrence of bug #35769 & #38688 but I doubt it....

Philip Nienhuis <philipnienhuis>
Group Member
Fri 12 Apr 2013 02:07:56 PM UTC, original submission:  

Pi
ans =
3.1415 .....
sin(Pi)
error: sinh: not defined in vpa  // error
sin(3.14159265)
3.5898e-009

the same result with Octave 3.6.2

Anonymous

 

(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 rik5 (Updated the item)
  • -email is unavailable- added by tmacchant (Posted a comment)
  • -email is unavailable- added by jwe (Posted a comment)
  • -email is unavailable- added by None (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 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2013-06-19 rik5 CategoryInterpreter Octave Package
        Open/ClosedOpen Closed
    2013-04-12 philipnienhuis StatusNone Works For Me

    Back to the top

    Powered by Savane 3.13-758e.
    Corresponding source code