bugGNU Octave - Bugs: bug #31284, cosd and sind return an error when...

 
 

bug #31284: cosd and sind return an error when called from a script

Submitter:  None
Submitted:  Sat 09 Oct 2010 04:38:45 AM UTC
   
 
Category:  Interpreter Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Incorrect Result
Status:  Invalid / Not an Octave Bug Assigned to:  None
Originator Name:  Matt Originator Email:  -email is unavailable-
Open/Closed:  * Closed Release:  * 3.2.4
Operating System:  * Microsoft Windows Fixed Release:  None
Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Sun 10 Oct 2010 08:09:55 AM UTC, comment #2: 

Thank you, this is much appreciated.

Matt.

Matthew Signorini <m_signorini>
Sat 09 Oct 2010 05:22:47 AM UTC, comment #1: 

This is not a bug, but happens because of the way Octave treats spaces inside square brackets used for creating matrix objects.  Please see

  http://www.gnu.org/software/octave/doc/interpreter/Matrices.html#Matrices

for a more detailed explanation.

John W. Eaton <jwe>
Group administrator
Sat 09 Oct 2010 04:38:45 AM UTC, original submission:  

I wrote a script to solve a mechanics problem, which involves computing the sine and cosine of an angle in order to calculate the components of a force vector. When I run it, it says:

"error: Invalid call to cosd. Correct usage is: " and so on.

I have attached the script. It seems to be correct to me.

Anonymous

 

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

Attach Files:
   
   
Comment:
   

Attached Files
file #21644:  tugboats.m added by None (828B - application/octet-stream)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by m_signorini (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
    2010-10-09 jwe StatusNone Invalid / Not an Octave Bug
        Open/ClosedOpen Closed
    2010-10-09 None Attached File- Added tugboats.m, #21644

    Back to the top

    Powered by Savane 3.13-02a9.
    Corresponding source code