Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed code block bugs and clarified a sentence in intro.rst #120

Merged
merged 1 commit into from
Apr 18, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading