Skip to content

Commit 89a1465

Browse files
Only use $^\prime$ notation for single derivative (#312)
1 parent e5acc19 commit 89a1465

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

symfem/functionals.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -454,7 +454,7 @@ def get_tex(self) -> typing.Tuple[str, typing.List[str]]:
454454
Representation of the functional as TeX, and list of terms involved
455455
"""
456456
assert isinstance(self.point, VectorFunction)
457-
if len(self.point) == 1:
457+
if len(self.point) == 1 and self.derivative[0] == 1:
458458
desc = "v\\mapsto "
459459
desc += f"v'({','.join([_to_tex(i, True) for i in self.point])})"
460460
return desc, []

0 commit comments

Comments
 (0)