update multivector examples

This commit is contained in:
Luciano Ramalho
2014-10-16 13:09:08 -03:00
parent b38a2f9c3a
commit 56aa9fa124
5 changed files with 344 additions and 2 deletions

View File

@@ -28,7 +28,7 @@ Test of ``.frombytes()`` class method:
>>> v1 == v1_clone
True
Tests of ``format()`` with rectangular coordinates:
Tests of ``format()`` with Cartesian coordinates:
>>> format(v1)
'(3.0, 4.0)'
@@ -37,6 +37,7 @@ Tests of ``format()`` with rectangular coordinates:
>>> format(v1, '.3e')
'(3.000e+00, 4.000e+00)'
Tests of the ``angle`` method::
>>> Vector(0, 0).angle()
@@ -49,6 +50,7 @@ Tests of the ``angle`` method::
>>> abs(Vector(1, 1).angle() - math.pi/4) < epsilon
True
Tests of ``format()`` with polar coordinates:
>>> format(Vector(1, 1), 'p') # doctest:+ELLIPSIS