Skip to content
This repository was archived by the owner on Feb 1, 2023. It is now read-only.

Commit 8d7086a

Browse files
author
Michael Jung
committed
'is_unit' modified
1 parent 3910465 commit 8d7086a

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/sage/manifolds/chart_func.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -855,9 +855,10 @@ def is_trivial_zero(self):
855855
curr = self._calc_method._current
856856
return self._calc_method.is_trivial_zero(self.expr(curr))
857857

858+
# TODO: Remove this method as soon as ticket #28629 is solved?
858859
def is_unit(self):
859860
r"""
860-
Return ``True`` iff ``self`` is not identically zero since most chart
861+
Return ``True`` iff ``self`` is not trivially zero since most chart
861862
functions are invertible and an actual computation would take too much
862863
time.
863864
@@ -873,7 +874,7 @@ def is_unit(self):
873874
False
874875
875876
"""
876-
return not self.is_zero()
877+
return not self.is_trivial_zero()
877878

878879
def copy(self):
879880
r"""

src/sage/manifolds/scalarfield.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1203,6 +1203,7 @@ def is_trivial_zero(self):
12031203
return True
12041204
return all(func.is_trivial_zero() for func in self._express.values())
12051205

1206+
# TODO: Remove this method as soon as ticket #28629 is solved?
12061207
def is_unit(self):
12071208
r"""
12081209
Return ``True`` iff ``self`` is not trivially zero in at least one of

0 commit comments

Comments
 (0)