Skip to content

Commit

Permalink
Fixed code block bugs and clarified a sentence in intro.rst (#120)
Browse files Browse the repository at this point in the history
  • Loading branch information
tjdwill authored Apr 18, 2024
1 parent 470962c commit b16b34f
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions docs/source/intro.rst
Original file line number Diff line number Diff line change
Expand Up @@ -153,8 +153,8 @@ The implementation of composition depends on the class:
* for unit-quaternions composition is the Hamilton product of the underlying vector value,
* for twists it is the logarithm of the product of exponentiating the two twists

The ``**`` operator denotes repeated composition, so the exponent must be an integer. If the negative exponent the repeated multiplication
is performed then the inverse is taken.
The ``**`` operator denotes repeated composition, so the exponent must be an integer. If the exponent is negative, repeated multiplication
is performed and then the inverse is taken.

The group inverse is given by the ``inv()`` method:

Expand Down Expand Up @@ -214,6 +214,8 @@ or, in the case of a scalar, broadcast to each element:
.. runblock:: pycon

>>> from spatialmath import *
>>> T = SE3()
>>> T
>>> T - 1
>>> 2 * T

Expand Down Expand Up @@ -609,7 +611,7 @@ column vectors.
.. runblock:: pycon

>>> from spatialmath.base import *
>>> q = quat.qqmul([1,2,3,4], [5,6,7,8])
>>> q = qqmul([1,2,3,4], [5,6,7,8])
>>> q
>>> qprint(q)
>>> qnorm(q)
Expand Down

0 comments on commit b16b34f

Please sign in to comment.