Skip to content

Commit b16b34f

Browse files
authored
Fixed code block bugs and clarified a sentence in intro.rst (#120)
1 parent 470962c commit b16b34f

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

docs/source/intro.rst

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -153,8 +153,8 @@ The implementation of composition depends on the class:
153153
* for unit-quaternions composition is the Hamilton product of the underlying vector value,
154154
* for twists it is the logarithm of the product of exponentiating the two twists
155155

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

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

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

216216
>>> from spatialmath import *
217+
>>> T = SE3()
218+
>>> T
217219
>>> T - 1
218220
>>> 2 * T
219221

@@ -609,7 +611,7 @@ column vectors.
609611
.. runblock:: pycon
610612

611613
>>> from spatialmath.base import *
612-
>>> q = quat.qqmul([1,2,3,4], [5,6,7,8])
614+
>>> q = qqmul([1,2,3,4], [5,6,7,8])
613615
>>> q
614616
>>> qprint(q)
615617
>>> qnorm(q)

0 commit comments

Comments
 (0)