Exemple #1
0
 def v_literal(self, x, y):
     vx = Vector(x)
     vxy = Vector(x, y)
     vx1y = Vector(x + 1, y)
     s = Scalar(name='s', nonnegative=True)
     vs3 = Vector(s + 3, smart=True)
     return vx, vxy, vx1y, vs3
Exemple #2
0
 def v_num(self):
     v2 = Vector(2, smart=True)
     v3 = Vector(3, smart=True)
     v4 = Vector(4)
     v11 = Vector(1, 1)
     v13 = Vector(1, 3)
     v23 = Vector(2, 3)
     return v2, v3, v4, v11, v13, v23