Wow! Mathcad sure has kept that a secret! I can't find numer or denom in the help at all but I tried it and it works! I can now generator coefficients for by difference equations automatically from the z domain transfer function. I use numer and denom and then coeffs,z.
I will try out the numer and denom functions with polyroots tomorrow to see if I can easily generate poles and zeros. Then my pole/zero plots will update automatically too.
I wonder what other secrets there are.
My next complaint is that often Mathcad produces transfer functions where the sign is wrong for both the numerator and the denominator. Example -x/-y. Is there and easy way to make this x/y?
After that I often see functions the look like this (-b+a)/3 instead of (a-b)/3. I know this is small stuff but I would like to use my Mathcad examples in a book someday and it would be nice if I didn't have to manually edit so much.
It never hurts to ask.
Peter Nachtwey