Singular Manual: getStringpfd_indexed

| #### D.15.12.7 getStringpfd_indexed Procedure from library `pfd.lib` (see pfd_lib). Usage: getStringpfd_indexed(dec); dec list Purpose: turn a partial fraction decomposition `dec` into one string, writing the denominator factors just as `q1`,`q2`,... . The list `dec` has to have the same structure as the output of pfd. Example:
    LIB "pfd.lib";
    ring R = 0,(x,y),dp;
    poly f = x^3+3*x^2*y+2*y^2-x^2+4*x*y;
    poly g = x^2*y*(x-1)*(x-y)^2;
    list dec = pfd(f,g);
    ==>   (2) / (q3*q4)
    ==> + (-2) / (q1*q4)
    ==> + (-6) / (q3*q4^2)
    ==> + (1) / (q2*q4^2)
    ==> + (9) / (q1*q4^2)
    ==> + (2) / (q3^2*q4)
    ==> where
    ==> q1 = x-1
    ==> q2 = y
    ==> q3 = x
    ==> q4 = x-y
    ==> (6 terms)
    ==>
    displaypfd(dec);
    ==>   (2) / (q3*q4)
    ==> + (-2) / (q1*q4)
    ==> + (-6) / (q3*q4^2)
    ==> + (1) / (q2*q4^2)
    ==> + (9) / (q1*q4^2)
    ==> + (2) / (q3^2*q4)
    ==> where
    ==> q1 = x-1
    ==> q2 = y
    ==> q3 = x
    ==> q4 = x-y
    ==> (6 terms)
    ==>
    getStringpfd_indexed(dec);
    ==> (2)/(q3*q4) + (-2)/(q1*q4) + (-6)/(q3*q4^2) + (1)/(q2*q4^2) + (9)/(q1*q4^\
       2) + (2)/(q3^2*q4)
See also: displaypfd; displaypfd_long; getStringpfd; pfd.

User manual for Singular version 4.3.2p10, 2023, generated by texi2html.