Skip to content

Commit

Permalink
....
Browse files Browse the repository at this point in the history
  • Loading branch information
crowlogic committed Jan 19, 2024
1 parent fc4eadb commit a37822a
Show file tree
Hide file tree
Showing 6 changed files with 96 additions and 290 deletions.
22 changes: 11 additions & 11 deletions src/main/java/arb/functions/B.java
Original file line number Diff line number Diff line change
Expand Up @@ -20,20 +20,20 @@ public class B implements

public Real evaluate(Real in, int order, int bits, Real result)
{
return ((Real) in).add(this.α, bits, this.r1)
.sub(this._c0, bits, this.r2)
.mul(((Real) in).add(this.β, bits, this.r3).sub(this._c0, bits, this.r4), bits, this.r5)
.mul((Real) this.C.evaluate((Real) in, order, bits, this.r6), bits, (Real) result);
return in.add(α, bits, r1)
.sub(_c0, bits, r2)
.mul(in.add(β, bits, r3).sub(_c0, bits, r4), bits, r5)
.mul(C.evaluate(in, order, bits, r6), bits, result);
}

public void close()
{
this._c0.close();
this.r1.close();
this.r2.close();
this.r3.close();
this.r4.close();
this.r5.close();
this.r6.close();
_c0.close();
r1.close();
r2.close();
r3.close();
r4.close();
r5.close();
r6.close();
}
}
8 changes: 4 additions & 4 deletions src/main/java/arb/functions/C.java
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@ public class C implements

public Real evaluate(Real in, int order, int bits, Real result)
{
return this._c0.mul((Real) in, bits, this.r1).add(this.α, bits, this.r2).add(this.β, bits, (Real) result);
return _c0.mul(in, bits, r1).add(α, bits, r2).add(β, bits, result);
}

public void close()
{
this._c0.close();
this.r1.close();
this.r2.close();
_c0.close();
r1.close();
r2.close();
}
}
22 changes: 9 additions & 13 deletions src/main/java/arb/functions/E.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,22 +18,18 @@ public class E implements

public Real evaluate(Real in, int order, int bits, Real result)
{
return ((Real) in).mul((Real) this.C.evaluate(((Real) in).div(this._c0, bits, this.r1), order, bits, this.r2),
bits,
this.r3)
.mul((Real) this.C.evaluate(((Real) in).sub(this._c1, bits, this.r4), order, bits, this.r5),
bits,
(Real) result);
return in.mul(C.evaluate(in.div(_c0, bits, r1), order, bits, r2), bits, r3)
.mul(C.evaluate(in.sub(_c1, bits, r4), order, bits, r5), bits, result);
}

public void close()
{
this._c0.close();
this._c1.close();
this.r1.close();
this.r2.close();
this.r3.close();
this.r4.close();
this.r5.close();
_c0.close();
_c1.close();
r1.close();
r2.close();
r3.close();
r4.close();
r5.close();
}
}
23 changes: 8 additions & 15 deletions src/main/java/arb/functions/F.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,24 +16,17 @@ public class F implements

public Real evaluate(Integer in, int order, int bits, Real result)
{
return ((Real) this.C.evaluate(this.r1.set(((Integer) in).sub(this._c0, bits, this.i1)),
order,
bits,
this.r2)).mul((Real) this.C.evaluate(this.r3.set((Integer) in),
order,
bits,
this.r4),
bits,
(Real) result);
return C.evaluate(r1.set(in.sub(_c0, bits, i1)), order, bits, r2)
.mul(C.evaluate(r3.set(in), order, bits, r4), bits, result);
}

public void close()
{
this._c0.close();
this.r1.close();
this.i1.close();
this.r2.close();
this.r3.close();
this.r4.close();
_c0.close();
r1.close();
i1.close();
r2.close();
r3.close();
r4.close();
}
}
167 changes: 0 additions & 167 deletions src/main/java/arb/functions/JacobiPolynomialPrototype.java

This file was deleted.

Loading

0 comments on commit a37822a

Please sign in to comment.