Search in sources :

Example 1 with Fract

use of suite.math.sym.Fractional.Fract in project suite by stupidsing.

the class Symbolic method polyize0.

@SuppressWarnings({ "rawtypes", "unchecked" })
public Opt<Node> polyize0(Node node, Atom... vars) {
    Fractional<?> fractional = Fractional.ofIntegral();
    for (Atom var : vars) fractional = divPoly(new Rewrite(var), fractional).fractional();
    Fractional<?> fractional_ = fractional;
    return fractional_.parse(node).map(o -> fractional_.format((Fract) o));
}
Also used : Fract(suite.math.sym.Fractional.Fract) Atom(suite.node.Atom)

Aggregations

Fract (suite.math.sym.Fractional.Fract)1 Atom (suite.node.Atom)1