public class LinearDiophantineEquation
extends java.lang.Object
implements java.io.Serializable
| Modifier and Type | Method and Description |
|---|---|
LinearDiophantineEquation |
add(LinearDiophantineEquation other) |
long |
apply(long x) |
long |
applyNth(long x,
long n) |
static LinearDiophantineEquation |
constantValue(long constant) |
boolean |
equals(java.lang.Object obj) |
static long |
gcd(long a,
long b) |
long |
getConstant() |
long |
getSlope() |
int |
hashCode() |
boolean |
isConstant() |
static LinearDiophantineEquation |
multipleOf(long slope) |
LinearDiophantineEquation |
repeat(long n) |
static LinearDiophantineEquation |
slopeIntercept(long slope,
long constant) |
long |
solveFor(long y) |
long |
solveForNth(long y,
long n) |
java.lang.String |
toString() |
public static LinearDiophantineEquation constantValue(long constant)
public static LinearDiophantineEquation multipleOf(long slope)
public static LinearDiophantineEquation slopeIntercept(long slope, long constant)
public LinearDiophantineEquation add(LinearDiophantineEquation other)
public LinearDiophantineEquation repeat(long n)
public long getSlope()
public long getConstant()
public boolean isConstant()
public long apply(long x)
public long solveFor(long y)
public long applyNth(long x,
long n)
public long solveForNth(long y,
long n)
public java.lang.String toString()
toString in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic static long gcd(long a,
long b)
Copyright © 2018. All Rights Reserved.