yacas factorize polynoms

134 Views Asked by At

I want factorize polynoms with yacas but I can do it only with univarial. E.g. I want $x^2-y^2$ factorize to $(x-y)(x+y)$. How can I do it?

Or if anybody has any suggestion to another simple, free (BSD, GPL, etc.) CAS (I need some basic things for my students, in a high school), it's acceptable for me (would be nice LaTeX output, run on console without Xorg (because it's on a server)).

Thanks for helping.

1

There are 1 best solutions below

1
On

Assuming I'm understanding your need, you could just make a simple package for something like SymPy or yacas. The package could just provide aliases (re-namings) to the functions you want them to use. So, they would just enter like

Hfactorize(x^2-y^2) %I don't know the Hungarian word for factorize

and it would spit back out something like

(x-y)(x+y)

Since all of the inputs and outputs are math, they don't need any translation. The only big issue I see with this strategy is that they wouldn't be able to interpret any error messages they got, unless they spoke English.

I'm not sure what the status of SymPy is for translations. It doesn't look like there's a Hungarian version, but there appear to be a few different European languages available.