Skip to content

Extra care needed for np.sin(theta) where theta = +np.pi or -np.pi ? #14

Description

@Carpetfizz

Hello,

In the so3.log function

return self.vee((0.5 * angle / np.sin(angle)) * (self.mat - self.mat.T))

There's a division by np.sin(angle) but there isn't a check to see if angle is +np.pi or -np.pi. I understand that due to numerical precision, np.sin(np.pi) != 0.0 but I'm wondering if there needs to be some extra care taken here.

See

https://en.wikipedia.org/wiki/Axis–angle_representation#Log_map_from_SO(3)_to_%7F'%22%60UNIQ--postMath-0000000D-QINU%60%22'%7F(3)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions