vmath.expression

Class Rational

• ``` class Rational
extends Real```
• Field Summary

Fields
Modifier and Type Field and Description
`(package private) java.math.BigInteger` `f1`
`(package private) java.math.BigInteger` `f2`
• Fields inherited from class vmath.expression.Constant

`value`
• Fields inherited from class vmath.expression.Expression

`Constant, loadedTable, local, localTable, name, patternDict, table`
• Constructor Summary

Constructors
Constructor and Description
```Rational(java.math.BigInteger biginteger, java.math.BigInteger biginteger1)```
```Rational(long l, long l1)```
```Rational(MyLong mylong, MyLong mylong1)```
```Rational(java.lang.String s, java.lang.String s1)```
• Method Summary

Methods
Modifier and Type Method and Description
`(package private) Constant` `abs()`
`(package private) Constant` `add(MyLong mylong)`
`(package private) Constant` `add(Rational rational)`
`(package private) Constant` `divide(MyLong mylong)`
`(package private) Constant` `divide(Rational rational)`
`double` `f(double d)`
`(package private) Constant` `multiply(MyLong mylong)`
`(package private) Constant` `multiply(Rational rational)`
`Expression` `N()`
`(package private) Constant` `negate()`
`Expression` `simplify()`
`(package private) Constant` `subtract(MyLong mylong)`
`(package private) Constant` `subtract(Rational rational)`
`java.lang.String` `toString()`
`java.lang.String` `toTeX()`
• Methods inherited from class vmath.expression.Real

`add, add, add, divide, divide, divide, equals, equals, greater, greater, multiply, multiply, multiply, pow, pow, pow, subtract, subtract, subtract, toMath`
• Methods inherited from class vmath.expression.Constant

`add, differentiate, divide, getContinuity, getMultDecomp, getValue, isFree, multiply, pow, subtract, Taylor`
• Methods inherited from class vmath.expression.Expression

`clearAll, clearPatternValue, copy, equal, f, getAddDecomp, getPowerHash, hashCode, isPrime, match, replace, sort, type`
• Methods inherited from class java.lang.Object

`clone, finalize, getClass, notify, notifyAll, wait, wait, wait`
• Field Detail

• f1

`java.math.BigInteger f1`
• f2

`java.math.BigInteger f2`
• Constructor Detail

• Rational

```Rational(long l,
long l1)```
• Rational

```Rational(java.lang.String s,
java.lang.String s1)```
• Rational

```Rational(java.math.BigInteger biginteger,
java.math.BigInteger biginteger1)```
• Rational

```Rational(MyLong mylong,
MyLong mylong1)```
• Method Detail

• N

`public Expression N()`
Overrides:
`N` in class `Expression`

`Constant add(MyLong mylong)`
Overrides:
`add` in class `Real`

`Constant add(Rational rational)`
Overrides:
`add` in class `Real`
• divide

`Constant divide(MyLong mylong)`
Overrides:
`divide` in class `Real`
• divide

`Constant divide(Rational rational)`
Overrides:
`divide` in class `Real`
• f

`public double f(double d)`
Overrides:
`f` in class `Constant`
• multiply

`Constant multiply(MyLong mylong)`
Overrides:
`multiply` in class `Real`
• multiply

`Constant multiply(Rational rational)`
Overrides:
`multiply` in class `Real`
• simplify

`public Expression simplify()`
Overrides:
`simplify` in class `Expression`
• subtract

`Constant subtract(MyLong mylong)`
Overrides:
`subtract` in class `Real`
• subtract

`Constant subtract(Rational rational)`
Overrides:
`subtract` in class `Real`
• negate

`Constant negate()`
Overrides:
`negate` in class `Real`
• abs

`Constant abs()`
• toString

`public java.lang.String toString()`
Overrides:
`toString` in class `Real`
• toTeX

`public java.lang.String toTeX()`
Overrides:
`toTeX` in class `Expression`