bugGNU Octave - Bugs: bug #39521, quaternion/q2rot gives incorrect...

 
 

bug #39521: quaternion/q2rot gives incorrect result in some cases

Submitted by:  None
Submitted on:  Thu 18 Jul 2013 10:15:17 PM UTC  
 
Category: Octave Forge PackageSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Incorrect Result
Status: FixedAssigned to: None
Originator Name: Max KatsevOriginator 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.

 

Fri 01 Nov 2013 05:33:24 AM UTC, comment #2:

The problem is solved in the latest release, quaternion-2.0.3:

http://octave.sourceforge.net/quaternion/index.html

Thanks for your patience.

Lukas Reichlin <paramaniac>
Sun 27 Oct 2013 04:15:46 PM UTC, comment #1:

The problem is solved in current repository version
http://sourceforge.net/p/octave/quaternion/ci/4f18c5cd93619169a9fb41168bd99f9b39d117dc/

Juan Pablo Carbajal <juanpi>
Project Member
Thu 18 Jul 2013 10:15:17 PM UTC, original submission:

The function q2rot contains the following code:

I'm not sure what the purpose of this is (maybe force the output to be in [-pi/pi] range?), but it results in incorrect values if abs(theta)>pi, since it changes the angle by pi. This happens when q.w is negative.

Here is a test case:
Here 2.8584 rad is obviously a different rotation from 6 rad.

To fix the bug, the offending lines should be either removed completely, or (if the intention was to have the [-pi, pi] output range, replaced by

Anonymous

 

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

Attach File(s):
   
   
Comment:
   

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 mtmiller (Updated the item)
  • -unavailable- added by paramaniac (Posted a comment)
  • -unavailable- added by juanpi (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 2 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Mon 01 Jun 2015 03:51:48 PM UTCmtmillerStatusNone=>Fixed
      Open/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup1