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


bug #38716: error with sin Function

Submitted by:  None
Submitted on:  Fri 12 Apr 2013 02:07:56 PM UTC  
Category: Octave Forge PackageSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Other
Status: Works For MeAssigned to: None
Originator Name: Chris NOriginator Email: -unavailable-
Open/Closed: ClosedRelease: 3.6.4
Operating System: Microsoft Windows

Add a New Comment(Rich Markup)

You are not logged in

Please log in, so followups can be emailed to you.


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

On the octave 3.6.4 MinGW with octave-forge package,

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,


the almost packages including symbolic package are auto loaded.

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

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

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>
Project Member
Fri 12 Apr 2013 02:07:56 PM UTC, original submission:

ans =
3.1415 .....
error: sinh: not defined in vpa // error

the same result with Octave 3.6.2



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

Attach File(s):

No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -unavailable- added by rik5 (Updated the item)
  • -unavailable- added by tmacchant (Posted a comment)
  • -unavailable- added by jwe (Posted a comment)
  • -unavailable- added by None (Submitted the item)

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.


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



    Follow 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Wed 19 Jun 2013 03:40:43 AM UTCrik5CategoryInterpreter=>Octave Forge Package
    Fri 12 Apr 2013 04:49:16 PM UTCphilipnienhuisStatusNone=>Works For Me

    Back to the top

    Powered by Savane 3.1-cleanup1