Skip to content

Commit e9952b1

Browse files
committed
work without sympy
1 parent 525e47b commit e9952b1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎spatialmath/base/vectors.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ def norm(v):
133133
for x in v:
134134
sum += x * x
135135

136-
if isinstance(sum, sympy.Expr):
136+
if _symbolics and isinstance(sum, sympy.Expr):
137137
return sympy.sqrt(sum)
138138
else:
139139
return math.sqrt(sum)

0 commit comments

Comments
 (0)