Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit b16b34f

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

File tree

Expand file treeCollapse file tree

1 file changed

+5
-3
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+5
-3
lines changed

‎docs/source/intro.rst

Copy file name to clipboardExpand all lines: docs/source/intro.rst
+5-3Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.