harbor run -t openthoughts/tasktrove-exp-rpt-issue-issue-1964harbor download openthoughts/tasktrove-exp-rpt-issue-issue-1964The LaTeX printer in SymPy does not print full inverse-trigonometric function names for all inverse trig functions. Specifically, when using latex(acsc(x), inv_trig_style="full"), the output uses the generic function name acsc instead of the full name arccsc, whereas asin behaves correctly (e.g., latex(asin(x), inv_trig_style="full") yields \arcsin{x}).
The expected behavior is that, in full inverse-trig style, acsc and asec should be printed as \operatorname{arccsc}{...} and \operatorname{arccsec}{...} (or equivalent full names) so that the LaTeX output for all inverse trig functions is consistent.
The change touches the code path that formats functions in LaTeX and, in particular, the list of inverse-trig functions considered when applying the “full” style.
# File: sympy/printing/latex.py
def _print_Function(self, expr, exp=None):
...
# If the function is an inverse trig function, handle the style
inv_trig_table = ["asin", "acos", "atan", "acot"]
# If the function is an inverse trig function, handle the style
if func in inv_trig_table:
...
This is the state that leads to acsc/asec not being treated as inverse-trig functions for the purposes of the “full” style, causing them to be rendered as plain function names (e.g., \operatorname{acsc}{...}) rather than the full inverse-trig name (e.g., \operatorname{arccsc}{...}).
Modify the following file to implement the intended behavior:
Change needed (described, not shown verbatim):
Note: Do not reveal or insert the exact patch code here; only implement the described behavior.
To verify locally (without cloning the full repo), you can run a minimal test that exercises acsc and asec with inv_trig_style="full" and compare the output to the expected full-name LaTeX strings described above.