Skip to content

Commit

Permalink
Don't use \ in f-string
Browse files Browse the repository at this point in the history
  • Loading branch information
oscarbenjamin committed Nov 6, 2024
1 parent e47d0b9 commit b317403
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/protosym/simplecas/functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@
# ------------------------------------------------------------------------- #

latex_add = PyOpN(lambda args: f'({" + ".join(args)})')
latex_mul = PyOpN(lambda args: f"({' \\times '.join(args)})")
latex_mul = PyOpN(lambda args: "(" + r" \times ".join(args) + ")")
latex_pow = PyOp2(lambda b, e: f"{b}^{{{e}}}")
latex_sin = PyOp1(lambda a: rf"\sin({a})")
latex_cos = PyOp1(lambda a: rf"\cos({a})")
Expand Down

0 comments on commit b317403

Please sign in to comment.