symbolic icon indicating copy to clipboard operation
symbolic copied to clipboard

Factor and Partfrac should use radicals, complex

Open wsprague opened this issue 4 years ago • 1 comments

When I run factor(z^2-3), shouldn't I have the option of getting (z+sqrt(3)) * (z-sqrt(3))?

Similar issue for partfrac(), shouldn't there be options to decompose into monomials with radicals and square roots?

I am trying to use this package to study z and L transforms, and avoid some of the tedium of computing polynomial stuff by hand.

Thanks for everything, and I would be interested to know if I am off base.

wsprague avatar Apr 25 '20 15:04 wsprague

The Matlab SMT factor function has a FactorMode option that gives the results you want. The default mode is rational, which gives the same result as Octave. But the other options can return factorizations with real or radical coefficients.

mtmiller avatar Apr 25 '20 16:04 mtmiller