Hello,
I'm new to this forum, so I hope this is the right place to ask this question (this is a feature request for the formulas question type).
There is the function poly which provides tex format for a polynomial in a single variable.
A more general version with several variables involved would be very convenient (i have in mind linear algebra):
Input: list of coefficients , list of variables (strings) (same size).
Output a nicely formatted linear combination.
Example:
format([3,-2,1,0,7],["x","y","z","t","x^2"]) would yield 3x-2y+z+7x^2
I kind of manage to do this by hand but this is heavy. Does such a function already exist ? If not, that would be great to include it.
BTW, I don't know how to find out which version of Moodle we use at the univesity...