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

Submitted by:  None
Submitted on:  Sat 09 Oct 2010 04:38:45 AM UTC  
 
Category: InterpreterSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Incorrect Result
Status: InvalidAssigned to: None
Originator Name: MattOriginator Email: -unavailable-
Open/Closed: ClosedRelease: 3.2.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.

 

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>
Project 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 File(s):
   
   
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
  • -unavailable- added by m_signorini (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
    Sat 09 Oct 2010 05:22:47 AM UTCjweStatusNone=>Invalid
      Open/ClosedOpen=>Closed
    Sat 09 Oct 2010 04:38:45 AM UTCNoneAttached File-=>Added tugboats.m, #21644

    Back to the top


    Powered by Savane 3.1-cleanup1