Fix latex() and unicode(), and seek the advice of Derivative - #2132
Fix latex() and unicode(), and seek the advice of Derivative#2132Xingye-Dujing wants to merge 10 commits into
Conversation
DescriptionI discovered a problem with the The result is It is lacking (), which has led to the incorrect display of the differentially expressed formula. FixThis issue was triggered by the function Change to EndSince this behavior falls under the category of improper usage by the users, I would like to first inquire whether it is necessary to take this into consideration. If deemed necessary, I will submit the amendments. |
|
Now I have fixed the issues I discovered in |
DescriptionSometimes, the SolutionUse |
DescriptionSimplify the SolutionJust add a special case handling when the numerator is -1. (See the submitted code) |
Co-authored-by: Isuru Fernando <isuruf@gmail.com>





#2131
In the function UnicodePrinter::bvisit(const Add &x), when x.get_coef() is zero and the first term’s multiplier is -1, the expression is printed as the negative of the original via unicode(*expr).