Skip to content

Commit

Permalink
Fix for trig function displays
Browse files Browse the repository at this point in the history
  • Loading branch information
JWock82 committed Mar 31, 2023
1 parent 6394e60 commit 795f182
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions ipycalc/calc.py
Original file line number Diff line number Diff line change
Expand Up @@ -375,15 +375,15 @@ def to_latex(text):
text = text.replace('**', '^')

# Convert common functions to latex
text = text.replace('asin', '\\arcsin')
text = text.replace('acos', '\\arccos')
text = text.replace('atan', '\\arctan')
text = text.replace('arcsin', '\\arcsin')
text = text.replace('arccos', '\\arccos')
text = text.replace('arctan', '\\arctan')
text = text.replace('sin', '\\sin')
text = text.replace('cos', '\\cos')
text = text.replace('tan', '\\tan')
text = text.replace('a\\sin', '\\arcsin')
text = text.replace('a\\cos', '\\arccos')
text = text.replace('a\\tan', '\\arctan')
text = text.replace('arc\\sin', '\\arcsin')
text = text.replace('arc\\cos', '\\arccos')
text = text.replace('arc\\tan', '\\arctan')
text = text.replace('min', '\\min')
text = text.replace('max', '\\max')

Expand Down

0 comments on commit 795f182

Please sign in to comment.