aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNao Pross <np@0hm.ch>2024-03-03 17:15:11 +0100
committerNao Pross <np@0hm.ch>2024-03-03 17:15:11 +0100
commit6f009a4adfed0bbad442dc9e43fea286bb80d975 (patch)
tree1567bc3464346369d0fd81c518ac923fe96e5c31
parentAdd docstrings to util.isclose and util.iszero (diff)
downloadmdpoly-6f009a4adfed0bbad442dc9e43fea286bb80d975.tar.gz
mdpoly-6f009a4adfed0bbad442dc9e43fea286bb80d975.zip
Fix typo in method name
-rw-r--r--mdpoly/algebra.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/mdpoly/algebra.py b/mdpoly/algebra.py
index 6d245c6..5b3c597 100644
--- a/mdpoly/algebra.py
+++ b/mdpoly/algebra.py
@@ -66,7 +66,7 @@ class AlgebraicStructure(Protocol):
return isinstance(other, cls._constant)
@classmethod
- def _is_paramter(cls: T, other: T) -> bool:
+ def _is_parameter(cls: T, other: T) -> bool:
return isinstance(other, cls._parameter)
@classmethod
@@ -285,6 +285,7 @@ class PartialDiff(Expr, HasRepr, PolyRingAlgebra):
def __repr__(self) -> str:
return f"(∂_{self.wrt} {self.inner})"
+
@unary_operator
class Diff(Expr, PolyRingAlgebra):
""" Total differentiation. """