Skip to content

match unequal symbols #635

@veretin

Description

@veretin

Hi!

Suppose I want to do partial fraction of many denominators (below den(x?) means 1/(k.k - x) for example).

s x,y,z, mm1,mm2;
c den,inv;

g ff1 = den(mm1)*den(mm2);
g ff2 = den(mm1)^2;

repeat id den(x?)*den(y?!{,x}) = inv(x-y)*( den(x) - den(y) );

print+s;
.end

Result:

   ff1 =
       + den(mm1)*inv( - mm2 + mm1)
       - den(mm2)*inv( - mm2 + mm1)
      ;

   ff2 = 0;

ff1 is ok. But I dont want to capture terms with x==y.
Construction

id den(x?)*den(y?!{,x}) = inv(x-y)*( den(x) - den(y) );

does not make the job and ignores my check for the set.

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationSomething should be added to the documentation

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions