1519 lines
79 KiB
HTML
1519 lines
79 KiB
HTML
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
|
<!-- NewPage -->
|
|
<html lang="en">
|
|
<head>
|
|
<!-- Generated by javadoc (version 1.7.0_51) on Wed Apr 06 13:11:04 EDT 2016 -->
|
|
<title>Rational (Parallel Java 2 Library Documentation)</title>
|
|
<meta name="date" content="2016-04-06">
|
|
<link rel="stylesheet" type="text/css" href="../../../stylesheet.css" title="Style">
|
|
</head>
|
|
<body>
|
|
<script type="text/javascript"><!--
|
|
if (location.href.indexOf('is-external=true') == -1) {
|
|
parent.document.title="Rational (Parallel Java 2 Library Documentation)";
|
|
}
|
|
//-->
|
|
</script>
|
|
<noscript>
|
|
<div>JavaScript is disabled on your browser.</div>
|
|
</noscript>
|
|
<!-- ========= START OF TOP NAVBAR ======= -->
|
|
<div class="topNav"><a name="navbar_top">
|
|
<!-- -->
|
|
</a><a href="#skip-navbar_top" title="Skip navigation links"></a><a name="navbar_top_firstrow">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="navList" title="Navigation">
|
|
<li><a href="../../../overview-summary.html">Overview</a></li>
|
|
<li><a href="package-summary.html">Package</a></li>
|
|
<li class="navBarCell1Rev">Class</li>
|
|
<li><a href="class-use/Rational.html">Use</a></li>
|
|
<li><a href="package-tree.html">Tree</a></li>
|
|
<li><a href="../../../deprecated-list.html">Deprecated</a></li>
|
|
<li><a href="../../../index-files/index-1.html">Index</a></li>
|
|
<li><a href="../../../help-doc.html">Help</a></li>
|
|
</ul>
|
|
</div>
|
|
<div class="subNav">
|
|
<ul class="navList">
|
|
<li><a href="../../../edu/rit/numeric/RangeException.html" title="class in edu.rit.numeric"><span class="strong">Prev Class</span></a></li>
|
|
<li><a href="../../../edu/rit/numeric/RobustFit.html" title="class in edu.rit.numeric"><span class="strong">Next Class</span></a></li>
|
|
</ul>
|
|
<ul class="navList">
|
|
<li><a href="../../../index.html?edu/rit/numeric/Rational.html" target="_top">Frames</a></li>
|
|
<li><a href="Rational.html" target="_top">No Frames</a></li>
|
|
</ul>
|
|
<ul class="navList" id="allclasses_navbar_top">
|
|
<li><a href="../../../allclasses-noframe.html">All Classes</a></li>
|
|
</ul>
|
|
<div>
|
|
<script type="text/javascript"><!--
|
|
allClassesLink = document.getElementById("allclasses_navbar_top");
|
|
if(window==top) {
|
|
allClassesLink.style.display = "block";
|
|
}
|
|
else {
|
|
allClassesLink.style.display = "none";
|
|
}
|
|
//-->
|
|
</script>
|
|
</div>
|
|
<div>
|
|
<ul class="subNavList">
|
|
<li>Summary: </li>
|
|
<li>Nested | </li>
|
|
<li>Field | </li>
|
|
<li><a href="#constructor_summary">Constr</a> | </li>
|
|
<li><a href="#method_summary">Method</a></li>
|
|
</ul>
|
|
<ul class="subNavList">
|
|
<li>Detail: </li>
|
|
<li>Field | </li>
|
|
<li><a href="#constructor_detail">Constr</a> | </li>
|
|
<li><a href="#method_detail">Method</a></li>
|
|
</ul>
|
|
</div>
|
|
<a name="skip-navbar_top">
|
|
<!-- -->
|
|
</a></div>
|
|
<!-- ========= END OF TOP NAVBAR ========= -->
|
|
<!-- ======== START OF CLASS DATA ======== -->
|
|
<div class="header">
|
|
<div class="subTitle">edu.rit.numeric</div>
|
|
<h2 title="Class Rational" class="title">Class Rational</h2>
|
|
</div>
|
|
<div class="contentContainer">
|
|
<ul class="inheritance">
|
|
<li><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">java.lang.Object</a></li>
|
|
<li>
|
|
<ul class="inheritance">
|
|
<li>edu.rit.numeric.Rational</li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
<div class="description">
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<dl>
|
|
<dt>All Implemented Interfaces:</dt>
|
|
<dd><a href="http://docs.oracle.com/javase/7/docs/api/java/io/Serializable.html?is-external=true" title="class or interface in java.io">Serializable</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Comparable.html?is-external=true" title="class or interface in java.lang">Comparable</a></dd>
|
|
</dl>
|
|
<hr>
|
|
<br>
|
|
<pre>public class <span class="strong">Rational</span>
|
|
extends <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>
|
|
implements <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Comparable.html?is-external=true" title="class or interface in java.lang">Comparable</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/io/Serializable.html?is-external=true" title="class or interface in java.io">Serializable</a></pre>
|
|
<div class="block">Class Rational provides a 32-bit rational number. A 32-bit rational number is
|
|
the ratio of two 32-bit integers (type <TT>int</TT>). Operations are provided
|
|
for exact arithmetic and comparison with rational numbers.
|
|
<P>
|
|
Class Rational overrides the <TT>equals()</TT> and <TT>hashCode()</TT>
|
|
methods, making it suitable for use as a key in a hashed data structure like
|
|
a <a href="http://docs.oracle.com/javase/7/docs/api/java/util/HashMap.html?is-external=true" title="class or interface in java.util"><code></CODE>HashMap<CODE></code></a> or <a href="http://docs.oracle.com/javase/7/docs/api/java/util/HashSet.html?is-external=true" title="class or interface in java.util"><code></CODE>HashSet<CODE></code></a>. However, a Rational object is mutable. Take care not
|
|
to change the value of a Rational object if it is used as a key in a hashed
|
|
data structure.
|
|
<P>
|
|
Class Rational is not multiple thread safe.</div>
|
|
<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../serialized-form.html#edu.rit.numeric.Rational">Serialized Form</a></dd></dl>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
<div class="summary">
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
|
|
<ul class="blockList">
|
|
<li class="blockList"><a name="constructor_summary">
|
|
<!-- -->
|
|
</a>
|
|
<h3>Constructor Summary</h3>
|
|
<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation">
|
|
<caption><span>Constructors</span><span class="tabEnd"> </span></caption>
|
|
<tr>
|
|
<th class="colOne" scope="col">Constructor and Description</th>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colOne"><code><strong><a href="../../../edu/rit/numeric/Rational.html#Rational()">Rational</a></strong>()</code>
|
|
<div class="block">Construct a new rational number.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colOne"><code><strong><a href="../../../edu/rit/numeric/Rational.html#Rational(int)">Rational</a></strong>(int value)</code>
|
|
<div class="block">Construct a new rational number.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colOne"><code><strong><a href="../../../edu/rit/numeric/Rational.html#Rational(int, int)">Rational</a></strong>(int numer,
|
|
int denom)</code>
|
|
<div class="block">Construct a new rational number.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colOne"><code><strong><a href="../../../edu/rit/numeric/Rational.html#Rational(edu.rit.numeric.Rational)">Rational</a></strong>(<a href="../../../edu/rit/numeric/Rational.html" title="class in edu.rit.numeric">Rational</a> value)</code>
|
|
<div class="block">Construct a new rational number.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colOne"><code><strong><a href="../../../edu/rit/numeric/Rational.html#Rational(java.lang.String)">Rational</a></strong>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> s)</code>
|
|
<div class="block">Construct a new rational number.</div>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</li>
|
|
</ul>
|
|
<!-- ========== METHOD SUMMARY =========== -->
|
|
<ul class="blockList">
|
|
<li class="blockList"><a name="method_summary">
|
|
<!-- -->
|
|
</a>
|
|
<h3>Method Summary</h3>
|
|
<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
|
|
<caption><span>Methods</span><span class="tabEnd"> </span></caption>
|
|
<tr>
|
|
<th class="colFirst" scope="col">Modifier and Type</th>
|
|
<th class="colLast" scope="col">Method and Description</th>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code><a href="../../../edu/rit/numeric/Rational.html" title="class in edu.rit.numeric">Rational</a></code></td>
|
|
<td class="colLast"><code><strong><a href="../../../edu/rit/numeric/Rational.html#abs(int)">abs</a></strong>(int x)</code>
|
|
<div class="block">Set this rational number to the absolute value of the given number.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code><a href="../../../edu/rit/numeric/Rational.html" title="class in edu.rit.numeric">Rational</a></code></td>
|
|
<td class="colLast"><code><strong><a href="../../../edu/rit/numeric/Rational.html#abs(edu.rit.numeric.Rational)">abs</a></strong>(<a href="../../../edu/rit/numeric/Rational.html" title="class in edu.rit.numeric">Rational</a> x)</code>
|
|
<div class="block">Set this rational number to the absolute value of the given number.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code><a href="../../../edu/rit/numeric/Rational.html" title="class in edu.rit.numeric">Rational</a></code></td>
|
|
<td class="colLast"><code><strong><a href="../../../edu/rit/numeric/Rational.html#add(int, int)">add</a></strong>(int x,
|
|
int y)</code>
|
|
<div class="block">Set this rational number to the sum of the given numbers.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code><a href="../../../edu/rit/numeric/Rational.html" title="class in edu.rit.numeric">Rational</a></code></td>
|
|
<td class="colLast"><code><strong><a href="../../../edu/rit/numeric/Rational.html#add(int, edu.rit.numeric.Rational)">add</a></strong>(int x,
|
|
<a href="../../../edu/rit/numeric/Rational.html" title="class in edu.rit.numeric">Rational</a> y)</code>
|
|
<div class="block">Set this rational number to the sum of the given numbers.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code><a href="../../../edu/rit/numeric/Rational.html" title="class in edu.rit.numeric">Rational</a></code></td>
|
|
<td class="colLast"><code><strong><a href="../../../edu/rit/numeric/Rational.html#add(edu.rit.numeric.Rational, int)">add</a></strong>(<a href="../../../edu/rit/numeric/Rational.html" title="class in edu.rit.numeric">Rational</a> x,
|
|
int y)</code>
|
|
<div class="block">Set this rational number to the sum of the given numbers.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code><a href="../../../edu/rit/numeric/Rational.html" title="class in edu.rit.numeric">Rational</a></code></td>
|
|
<td class="colLast"><code><strong><a href="../../../edu/rit/numeric/Rational.html#add(edu.rit.numeric.Rational, edu.rit.numeric.Rational)">add</a></strong>(<a href="../../../edu/rit/numeric/Rational.html" title="class in edu.rit.numeric">Rational</a> x,
|
|
<a href="../../../edu/rit/numeric/Rational.html" title="class in edu.rit.numeric">Rational</a> y)</code>
|
|
<div class="block">Set this rational number to the sum of the given numbers.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code><a href="../../../edu/rit/numeric/Rational.html" title="class in edu.rit.numeric">Rational</a></code></td>
|
|
<td class="colLast"><code><strong><a href="../../../edu/rit/numeric/Rational.html#assign(int)">assign</a></strong>(int x)</code>
|
|
<div class="block">Set this rational number to the given number.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code><a href="../../../edu/rit/numeric/Rational.html" title="class in edu.rit.numeric">Rational</a></code></td>
|
|
<td class="colLast"><code><strong><a href="../../../edu/rit/numeric/Rational.html#assign(edu.rit.numeric.Rational)">assign</a></strong>(<a href="../../../edu/rit/numeric/Rational.html" title="class in edu.rit.numeric">Rational</a> x)</code>
|
|
<div class="block">Set this rational number to the given number.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code><a href="../../../edu/rit/numeric/Rational.html" title="class in edu.rit.numeric">Rational</a></code></td>
|
|
<td class="colLast"><code><strong><a href="../../../edu/rit/numeric/Rational.html#assign(java.lang.String)">assign</a></strong>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> s)</code>
|
|
<div class="block">Set this rational number to the value parsed from the given string.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code>int</code></td>
|
|
<td class="colLast"><code><strong><a href="../../../edu/rit/numeric/Rational.html#compareTo(java.lang.Object)">compareTo</a></strong>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> obj)</code>
|
|
<div class="block">Compare this rational number to the given object.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code><a href="../../../edu/rit/numeric/Rational.html" title="class in edu.rit.numeric">Rational</a></code></td>
|
|
<td class="colLast"><code><strong><a href="../../../edu/rit/numeric/Rational.html#div(int, int)">div</a></strong>(int x,
|
|
int y)</code>
|
|
<div class="block">Set this rational number to the quotient of the given numbers.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code><a href="../../../edu/rit/numeric/Rational.html" title="class in edu.rit.numeric">Rational</a></code></td>
|
|
<td class="colLast"><code><strong><a href="../../../edu/rit/numeric/Rational.html#div(int, edu.rit.numeric.Rational)">div</a></strong>(int x,
|
|
<a href="../../../edu/rit/numeric/Rational.html" title="class in edu.rit.numeric">Rational</a> y)</code>
|
|
<div class="block">Set this rational number to the quotient of the given numbers.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code><a href="../../../edu/rit/numeric/Rational.html" title="class in edu.rit.numeric">Rational</a></code></td>
|
|
<td class="colLast"><code><strong><a href="../../../edu/rit/numeric/Rational.html#div(edu.rit.numeric.Rational, int)">div</a></strong>(<a href="../../../edu/rit/numeric/Rational.html" title="class in edu.rit.numeric">Rational</a> x,
|
|
int y)</code>
|
|
<div class="block">Set this rational number to the quotient of the given numbers.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code><a href="../../../edu/rit/numeric/Rational.html" title="class in edu.rit.numeric">Rational</a></code></td>
|
|
<td class="colLast"><code><strong><a href="../../../edu/rit/numeric/Rational.html#div(edu.rit.numeric.Rational, edu.rit.numeric.Rational)">div</a></strong>(<a href="../../../edu/rit/numeric/Rational.html" title="class in edu.rit.numeric">Rational</a> x,
|
|
<a href="../../../edu/rit/numeric/Rational.html" title="class in edu.rit.numeric">Rational</a> y)</code>
|
|
<div class="block">Set this rational number to the quotient of the given numbers.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code>double</code></td>
|
|
<td class="colLast"><code><strong><a href="../../../edu/rit/numeric/Rational.html#doubleValue()">doubleValue</a></strong>()</code>
|
|
<div class="block">Converts this rational number to a double precision floating point
|
|
number.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code>boolean</code></td>
|
|
<td class="colLast"><code><strong><a href="../../../edu/rit/numeric/Rational.html#eq(int)">eq</a></strong>(int x)</code>
|
|
<div class="block">Determine if this rational number is equal to the given number.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code>boolean</code></td>
|
|
<td class="colLast"><code><strong><a href="../../../edu/rit/numeric/Rational.html#eq(edu.rit.numeric.Rational)">eq</a></strong>(<a href="../../../edu/rit/numeric/Rational.html" title="class in edu.rit.numeric">Rational</a> x)</code>
|
|
<div class="block">Determine if this rational number is equal to the given number.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code>boolean</code></td>
|
|
<td class="colLast"><code><strong><a href="../../../edu/rit/numeric/Rational.html#equals(java.lang.Object)">equals</a></strong>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> obj)</code>
|
|
<div class="block">Determine if this rational number is equal to the given object.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code>boolean</code></td>
|
|
<td class="colLast"><code><strong><a href="../../../edu/rit/numeric/Rational.html#eqZero()">eqZero</a></strong>()</code>
|
|
<div class="block">Determine if this rational number is equal to zero.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code>float</code></td>
|
|
<td class="colLast"><code><strong><a href="../../../edu/rit/numeric/Rational.html#floatValue()">floatValue</a></strong>()</code>
|
|
<div class="block">Converts this rational number to a single precision floating point
|
|
number.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code><a href="../../../edu/rit/numeric/Rational.html" title="class in edu.rit.numeric">Rational</a></code></td>
|
|
<td class="colLast"><code><strong><a href="../../../edu/rit/numeric/Rational.html#fracPart(edu.rit.numeric.Rational)">fracPart</a></strong>(<a href="../../../edu/rit/numeric/Rational.html" title="class in edu.rit.numeric">Rational</a> x)</code>
|
|
<div class="block">Set this rational number to the fractional part of the given rational
|
|
number.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code>boolean</code></td>
|
|
<td class="colLast"><code><strong><a href="../../../edu/rit/numeric/Rational.html#ge(int)">ge</a></strong>(int x)</code>
|
|
<div class="block">Determine if this rational number is greater than or equal to the given
|
|
number.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code>boolean</code></td>
|
|
<td class="colLast"><code><strong><a href="../../../edu/rit/numeric/Rational.html#ge(edu.rit.numeric.Rational)">ge</a></strong>(<a href="../../../edu/rit/numeric/Rational.html" title="class in edu.rit.numeric">Rational</a> x)</code>
|
|
<div class="block">Determine if this rational number is greater than or equal to the given
|
|
number.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code>boolean</code></td>
|
|
<td class="colLast"><code><strong><a href="../../../edu/rit/numeric/Rational.html#geZero()">geZero</a></strong>()</code>
|
|
<div class="block">Determine if this rational number is greater than or equal to zero.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code>boolean</code></td>
|
|
<td class="colLast"><code><strong><a href="../../../edu/rit/numeric/Rational.html#gt(int)">gt</a></strong>(int x)</code>
|
|
<div class="block">Determine if this rational number is greater than the given number.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code>boolean</code></td>
|
|
<td class="colLast"><code><strong><a href="../../../edu/rit/numeric/Rational.html#gt(edu.rit.numeric.Rational)">gt</a></strong>(<a href="../../../edu/rit/numeric/Rational.html" title="class in edu.rit.numeric">Rational</a> x)</code>
|
|
<div class="block">Determine if this rational number is greater than the given number.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code>boolean</code></td>
|
|
<td class="colLast"><code><strong><a href="../../../edu/rit/numeric/Rational.html#gtZero()">gtZero</a></strong>()</code>
|
|
<div class="block">Determine if this rational number is greater than zero.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code>int</code></td>
|
|
<td class="colLast"><code><strong><a href="../../../edu/rit/numeric/Rational.html#hashCode()">hashCode</a></strong>()</code>
|
|
<div class="block">Returns a hash code for this rational number.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code><a href="../../../edu/rit/numeric/Rational.html" title="class in edu.rit.numeric">Rational</a></code></td>
|
|
<td class="colLast"><code><strong><a href="../../../edu/rit/numeric/Rational.html#intPart(edu.rit.numeric.Rational)">intPart</a></strong>(<a href="../../../edu/rit/numeric/Rational.html" title="class in edu.rit.numeric">Rational</a> x)</code>
|
|
<div class="block">Set this rational number to the integer part of the given rational
|
|
number.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code>int</code></td>
|
|
<td class="colLast"><code><strong><a href="../../../edu/rit/numeric/Rational.html#intValue()">intValue</a></strong>()</code>
|
|
<div class="block">Converts this rational number to an integer.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code>boolean</code></td>
|
|
<td class="colLast"><code><strong><a href="../../../edu/rit/numeric/Rational.html#le(int)">le</a></strong>(int x)</code>
|
|
<div class="block">Determine if this rational number is less than or equal to the given
|
|
number.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code>boolean</code></td>
|
|
<td class="colLast"><code><strong><a href="../../../edu/rit/numeric/Rational.html#le(edu.rit.numeric.Rational)">le</a></strong>(<a href="../../../edu/rit/numeric/Rational.html" title="class in edu.rit.numeric">Rational</a> x)</code>
|
|
<div class="block">Determine if this rational number is less than or equal to the given
|
|
number.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code>boolean</code></td>
|
|
<td class="colLast"><code><strong><a href="../../../edu/rit/numeric/Rational.html#leZero()">leZero</a></strong>()</code>
|
|
<div class="block">Determine if this rational number is less than or equal to zero.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code>long</code></td>
|
|
<td class="colLast"><code><strong><a href="../../../edu/rit/numeric/Rational.html#longValue()">longValue</a></strong>()</code>
|
|
<div class="block">Converts this rational number to a long integer.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code>boolean</code></td>
|
|
<td class="colLast"><code><strong><a href="../../../edu/rit/numeric/Rational.html#lt(int)">lt</a></strong>(int x)</code>
|
|
<div class="block">Determine if this rational number is less than the given number.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code>boolean</code></td>
|
|
<td class="colLast"><code><strong><a href="../../../edu/rit/numeric/Rational.html#lt(edu.rit.numeric.Rational)">lt</a></strong>(<a href="../../../edu/rit/numeric/Rational.html" title="class in edu.rit.numeric">Rational</a> x)</code>
|
|
<div class="block">Determine if this rational number is less than the given number.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code>boolean</code></td>
|
|
<td class="colLast"><code><strong><a href="../../../edu/rit/numeric/Rational.html#ltZero()">ltZero</a></strong>()</code>
|
|
<div class="block">Determine if this rational number is less than zero.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code><a href="../../../edu/rit/numeric/Rational.html" title="class in edu.rit.numeric">Rational</a></code></td>
|
|
<td class="colLast"><code><strong><a href="../../../edu/rit/numeric/Rational.html#max(int, int)">max</a></strong>(int x,
|
|
int y)</code>
|
|
<div class="block">Set this rational number to the maximum of the given numbers.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code><a href="../../../edu/rit/numeric/Rational.html" title="class in edu.rit.numeric">Rational</a></code></td>
|
|
<td class="colLast"><code><strong><a href="../../../edu/rit/numeric/Rational.html#max(int, edu.rit.numeric.Rational)">max</a></strong>(int x,
|
|
<a href="../../../edu/rit/numeric/Rational.html" title="class in edu.rit.numeric">Rational</a> y)</code>
|
|
<div class="block">Set this rational number to the maximum of the given numbers.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code><a href="../../../edu/rit/numeric/Rational.html" title="class in edu.rit.numeric">Rational</a></code></td>
|
|
<td class="colLast"><code><strong><a href="../../../edu/rit/numeric/Rational.html#max(edu.rit.numeric.Rational, int)">max</a></strong>(<a href="../../../edu/rit/numeric/Rational.html" title="class in edu.rit.numeric">Rational</a> x,
|
|
int y)</code>
|
|
<div class="block">Set this rational number to the maximum of the given numbers.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code><a href="../../../edu/rit/numeric/Rational.html" title="class in edu.rit.numeric">Rational</a></code></td>
|
|
<td class="colLast"><code><strong><a href="../../../edu/rit/numeric/Rational.html#max(edu.rit.numeric.Rational, edu.rit.numeric.Rational)">max</a></strong>(<a href="../../../edu/rit/numeric/Rational.html" title="class in edu.rit.numeric">Rational</a> x,
|
|
<a href="../../../edu/rit/numeric/Rational.html" title="class in edu.rit.numeric">Rational</a> y)</code>
|
|
<div class="block">Set this rational number to the maximum of the given numbers.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code><a href="../../../edu/rit/numeric/Rational.html" title="class in edu.rit.numeric">Rational</a></code></td>
|
|
<td class="colLast"><code><strong><a href="../../../edu/rit/numeric/Rational.html#min(int, int)">min</a></strong>(int x,
|
|
int y)</code>
|
|
<div class="block">Set this rational number to the minimum of the given numbers.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code><a href="../../../edu/rit/numeric/Rational.html" title="class in edu.rit.numeric">Rational</a></code></td>
|
|
<td class="colLast"><code><strong><a href="../../../edu/rit/numeric/Rational.html#min(int, edu.rit.numeric.Rational)">min</a></strong>(int x,
|
|
<a href="../../../edu/rit/numeric/Rational.html" title="class in edu.rit.numeric">Rational</a> y)</code>
|
|
<div class="block">Set this rational number to the minimum of the given numbers.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code><a href="../../../edu/rit/numeric/Rational.html" title="class in edu.rit.numeric">Rational</a></code></td>
|
|
<td class="colLast"><code><strong><a href="../../../edu/rit/numeric/Rational.html#min(edu.rit.numeric.Rational, int)">min</a></strong>(<a href="../../../edu/rit/numeric/Rational.html" title="class in edu.rit.numeric">Rational</a> x,
|
|
int y)</code>
|
|
<div class="block">Set this rational number to the minimum of the given numbers.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code><a href="../../../edu/rit/numeric/Rational.html" title="class in edu.rit.numeric">Rational</a></code></td>
|
|
<td class="colLast"><code><strong><a href="../../../edu/rit/numeric/Rational.html#min(edu.rit.numeric.Rational, edu.rit.numeric.Rational)">min</a></strong>(<a href="../../../edu/rit/numeric/Rational.html" title="class in edu.rit.numeric">Rational</a> x,
|
|
<a href="../../../edu/rit/numeric/Rational.html" title="class in edu.rit.numeric">Rational</a> y)</code>
|
|
<div class="block">Set this rational number to the minimum of the given numbers.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code><a href="../../../edu/rit/numeric/Rational.html" title="class in edu.rit.numeric">Rational</a></code></td>
|
|
<td class="colLast"><code><strong><a href="../../../edu/rit/numeric/Rational.html#mul(int, int)">mul</a></strong>(int x,
|
|
int y)</code>
|
|
<div class="block">Set this rational number to the product of the given numbers.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code><a href="../../../edu/rit/numeric/Rational.html" title="class in edu.rit.numeric">Rational</a></code></td>
|
|
<td class="colLast"><code><strong><a href="../../../edu/rit/numeric/Rational.html#mul(int, edu.rit.numeric.Rational)">mul</a></strong>(int x,
|
|
<a href="../../../edu/rit/numeric/Rational.html" title="class in edu.rit.numeric">Rational</a> y)</code>
|
|
<div class="block">Set this rational number to the product of the given numbers.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code><a href="../../../edu/rit/numeric/Rational.html" title="class in edu.rit.numeric">Rational</a></code></td>
|
|
<td class="colLast"><code><strong><a href="../../../edu/rit/numeric/Rational.html#mul(edu.rit.numeric.Rational, int)">mul</a></strong>(<a href="../../../edu/rit/numeric/Rational.html" title="class in edu.rit.numeric">Rational</a> x,
|
|
int y)</code>
|
|
<div class="block">Set this rational number to the product of the given numbers.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code><a href="../../../edu/rit/numeric/Rational.html" title="class in edu.rit.numeric">Rational</a></code></td>
|
|
<td class="colLast"><code><strong><a href="../../../edu/rit/numeric/Rational.html#mul(edu.rit.numeric.Rational, edu.rit.numeric.Rational)">mul</a></strong>(<a href="../../../edu/rit/numeric/Rational.html" title="class in edu.rit.numeric">Rational</a> x,
|
|
<a href="../../../edu/rit/numeric/Rational.html" title="class in edu.rit.numeric">Rational</a> y)</code>
|
|
<div class="block">Set this rational number to the product of the given numbers.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code>boolean</code></td>
|
|
<td class="colLast"><code><strong><a href="../../../edu/rit/numeric/Rational.html#ne(int)">ne</a></strong>(int x)</code>
|
|
<div class="block">Determine if this rational number is not equal to the given number.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code>boolean</code></td>
|
|
<td class="colLast"><code><strong><a href="../../../edu/rit/numeric/Rational.html#ne(edu.rit.numeric.Rational)">ne</a></strong>(<a href="../../../edu/rit/numeric/Rational.html" title="class in edu.rit.numeric">Rational</a> x)</code>
|
|
<div class="block">Determine if this rational number is not equal to the given number.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code><a href="../../../edu/rit/numeric/Rational.html" title="class in edu.rit.numeric">Rational</a></code></td>
|
|
<td class="colLast"><code><strong><a href="../../../edu/rit/numeric/Rational.html#neg(int)">neg</a></strong>(int x)</code>
|
|
<div class="block">Set this rational number to the negative of the given number.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code><a href="../../../edu/rit/numeric/Rational.html" title="class in edu.rit.numeric">Rational</a></code></td>
|
|
<td class="colLast"><code><strong><a href="../../../edu/rit/numeric/Rational.html#neg(edu.rit.numeric.Rational)">neg</a></strong>(<a href="../../../edu/rit/numeric/Rational.html" title="class in edu.rit.numeric">Rational</a> x)</code>
|
|
<div class="block">Set this rational number to the negative of the given number.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code>boolean</code></td>
|
|
<td class="colLast"><code><strong><a href="../../../edu/rit/numeric/Rational.html#neZero()">neZero</a></strong>()</code>
|
|
<div class="block">Determine if this rational number is not equal to zero.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code><a href="../../../edu/rit/numeric/Rational.html" title="class in edu.rit.numeric">Rational</a></code></td>
|
|
<td class="colLast"><code><strong><a href="../../../edu/rit/numeric/Rational.html#sub(int, int)">sub</a></strong>(int x,
|
|
int y)</code>
|
|
<div class="block">Set this rational number to the difference of the given numbers.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code><a href="../../../edu/rit/numeric/Rational.html" title="class in edu.rit.numeric">Rational</a></code></td>
|
|
<td class="colLast"><code><strong><a href="../../../edu/rit/numeric/Rational.html#sub(int, edu.rit.numeric.Rational)">sub</a></strong>(int x,
|
|
<a href="../../../edu/rit/numeric/Rational.html" title="class in edu.rit.numeric">Rational</a> y)</code>
|
|
<div class="block">Set this rational number to the difference of the given numbers.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code><a href="../../../edu/rit/numeric/Rational.html" title="class in edu.rit.numeric">Rational</a></code></td>
|
|
<td class="colLast"><code><strong><a href="../../../edu/rit/numeric/Rational.html#sub(edu.rit.numeric.Rational, int)">sub</a></strong>(<a href="../../../edu/rit/numeric/Rational.html" title="class in edu.rit.numeric">Rational</a> x,
|
|
int y)</code>
|
|
<div class="block">Set this rational number to the difference of the given numbers.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code><a href="../../../edu/rit/numeric/Rational.html" title="class in edu.rit.numeric">Rational</a></code></td>
|
|
<td class="colLast"><code><strong><a href="../../../edu/rit/numeric/Rational.html#sub(edu.rit.numeric.Rational, edu.rit.numeric.Rational)">sub</a></strong>(<a href="../../../edu/rit/numeric/Rational.html" title="class in edu.rit.numeric">Rational</a> x,
|
|
<a href="../../../edu/rit/numeric/Rational.html" title="class in edu.rit.numeric">Rational</a> y)</code>
|
|
<div class="block">Set this rational number to the difference of the given numbers.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
|
|
<td class="colLast"><code><strong><a href="../../../edu/rit/numeric/Rational.html#toString()">toString</a></strong>()</code>
|
|
<div class="block">Returns a string version of this rational number.</div>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<ul class="blockList">
|
|
<li class="blockList"><a name="methods_inherited_from_class_java.lang.Object">
|
|
<!-- -->
|
|
</a>
|
|
<h3>Methods inherited from class java.lang.<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></h3>
|
|
<code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#clone()" title="class or interface in java.lang">clone</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#finalize()" title="class or interface in java.lang">finalize</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#getClass()" title="class or interface in java.lang">getClass</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#notify()" title="class or interface in java.lang">notify</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#notifyAll()" title="class or interface in java.lang">notifyAll</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#wait()" title="class or interface in java.lang">wait</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#wait(long)" title="class or interface in java.lang">wait</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#wait(long, int)" title="class or interface in java.lang">wait</a></code></li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
<div class="details">
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<!-- ========= CONSTRUCTOR DETAIL ======== -->
|
|
<ul class="blockList">
|
|
<li class="blockList"><a name="constructor_detail">
|
|
<!-- -->
|
|
</a>
|
|
<h3>Constructor Detail</h3>
|
|
<a name="Rational()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>Rational</h4>
|
|
<pre>public Rational()</pre>
|
|
<div class="block">Construct a new rational number. Its value is 0.</div>
|
|
</li>
|
|
</ul>
|
|
<a name="Rational(int)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>Rational</h4>
|
|
<pre>public Rational(int value)</pre>
|
|
<div class="block">Construct a new rational number. Its value is <TT>value</TT>.</div>
|
|
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>value</code> - Value.</dd></dl>
|
|
</li>
|
|
</ul>
|
|
<a name="Rational(int, int)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>Rational</h4>
|
|
<pre>public Rational(int numer,
|
|
int denom)</pre>
|
|
<div class="block">Construct a new rational number. Its value is <TT>numer/denom</TT>.</div>
|
|
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>numer</code> - Numerator.</dd><dd><code>denom</code> - Denominator.</dd>
|
|
<dt><span class="strong">Throws:</span></dt>
|
|
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/ArithmeticException.html?is-external=true" title="class or interface in java.lang">ArithmeticException</a></code> - (unchecked exception) Thrown if <TT>denom</TT> is 0.</dd></dl>
|
|
</li>
|
|
</ul>
|
|
<a name="Rational(edu.rit.numeric.Rational)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>Rational</h4>
|
|
<pre>public Rational(<a href="../../../edu/rit/numeric/Rational.html" title="class in edu.rit.numeric">Rational</a> value)</pre>
|
|
<div class="block">Construct a new rational number. Its value is <TT>value</TT>.</div>
|
|
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>value</code> - Rational number.</dd></dl>
|
|
</li>
|
|
</ul>
|
|
<a name="Rational(java.lang.String)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockListLast">
|
|
<li class="blockList">
|
|
<h4>Rational</h4>
|
|
<pre>public Rational(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> s)</pre>
|
|
<div class="block">Construct a new rational number. Its value comes from the string
|
|
<TT>s</TT>. The string must obey this syntax: optional minus sign
|
|
(<TT>-</TT>), numerator (decimal integer), slash (<TT>/</TT>),
|
|
denominator (decimal integer). The slash-and-denominator is optional. If
|
|
present, the denominator must be greater than 0. There is no whitespace
|
|
within the string.</div>
|
|
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>s</code> - String.</dd>
|
|
<dt><span class="strong">Throws:</span></dt>
|
|
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/NumberFormatException.html?is-external=true" title="class or interface in java.lang">NumberFormatException</a></code> - (unchecked exception) Thrown if <TT>s</TT> cannot be parsed into a
|
|
rational number.</dd></dl>
|
|
</li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
<!-- ============ METHOD DETAIL ========== -->
|
|
<ul class="blockList">
|
|
<li class="blockList"><a name="method_detail">
|
|
<!-- -->
|
|
</a>
|
|
<h3>Method Detail</h3>
|
|
<a name="assign(edu.rit.numeric.Rational)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>assign</h4>
|
|
<pre>public <a href="../../../edu/rit/numeric/Rational.html" title="class in edu.rit.numeric">Rational</a> assign(<a href="../../../edu/rit/numeric/Rational.html" title="class in edu.rit.numeric">Rational</a> x)</pre>
|
|
<div class="block">Set this rational number to the given number.</div>
|
|
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>x</code> - Rational number.</dd>
|
|
<dt><span class="strong">Returns:</span></dt><dd>This rational number, with its value set to <TT>x</TT>.</dd></dl>
|
|
</li>
|
|
</ul>
|
|
<a name="assign(int)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>assign</h4>
|
|
<pre>public <a href="../../../edu/rit/numeric/Rational.html" title="class in edu.rit.numeric">Rational</a> assign(int x)</pre>
|
|
<div class="block">Set this rational number to the given number.</div>
|
|
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>x</code> - Integer.</dd>
|
|
<dt><span class="strong">Returns:</span></dt><dd>This rational number, with its value set to <TT>x</TT>.</dd></dl>
|
|
</li>
|
|
</ul>
|
|
<a name="assign(java.lang.String)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>assign</h4>
|
|
<pre>public <a href="../../../edu/rit/numeric/Rational.html" title="class in edu.rit.numeric">Rational</a> assign(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> s)</pre>
|
|
<div class="block">Set this rational number to the value parsed from the given string. The
|
|
string must obey this syntax: optional minus sign (<TT>-</TT>), numerator
|
|
(decimal integer), slash (<TT>/</TT>), denominator (decimal integer). The
|
|
slash-and-denominator is optional. If present, the denominator must be
|
|
greater than 0. There is no whitespace within the string.</div>
|
|
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>s</code> - String.</dd>
|
|
<dt><span class="strong">Returns:</span></dt><dd>This rational number, with its value set to <TT>s</TT>.</dd>
|
|
<dt><span class="strong">Throws:</span></dt>
|
|
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/NumberFormatException.html?is-external=true" title="class or interface in java.lang">NumberFormatException</a></code> - (unchecked exception) Thrown if <TT>s</TT> cannot be parsed into a
|
|
rational number.</dd></dl>
|
|
</li>
|
|
</ul>
|
|
<a name="neg(edu.rit.numeric.Rational)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>neg</h4>
|
|
<pre>public <a href="../../../edu/rit/numeric/Rational.html" title="class in edu.rit.numeric">Rational</a> neg(<a href="../../../edu/rit/numeric/Rational.html" title="class in edu.rit.numeric">Rational</a> x)</pre>
|
|
<div class="block">Set this rational number to the negative of the given number.</div>
|
|
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>x</code> - Rational number.</dd>
|
|
<dt><span class="strong">Returns:</span></dt><dd>This rational number, with its value set to <TT>-x</TT>.</dd></dl>
|
|
</li>
|
|
</ul>
|
|
<a name="neg(int)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>neg</h4>
|
|
<pre>public <a href="../../../edu/rit/numeric/Rational.html" title="class in edu.rit.numeric">Rational</a> neg(int x)</pre>
|
|
<div class="block">Set this rational number to the negative of the given number.</div>
|
|
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>x</code> - Integer.</dd>
|
|
<dt><span class="strong">Returns:</span></dt><dd>This rational number, with its value set to <TT>-x</TT>.</dd></dl>
|
|
</li>
|
|
</ul>
|
|
<a name="abs(edu.rit.numeric.Rational)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>abs</h4>
|
|
<pre>public <a href="../../../edu/rit/numeric/Rational.html" title="class in edu.rit.numeric">Rational</a> abs(<a href="../../../edu/rit/numeric/Rational.html" title="class in edu.rit.numeric">Rational</a> x)</pre>
|
|
<div class="block">Set this rational number to the absolute value of the given number.</div>
|
|
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>x</code> - Rational number.</dd>
|
|
<dt><span class="strong">Returns:</span></dt><dd>This rational number, with its value set to <TT>abs(x)</TT>.</dd></dl>
|
|
</li>
|
|
</ul>
|
|
<a name="abs(int)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>abs</h4>
|
|
<pre>public <a href="../../../edu/rit/numeric/Rational.html" title="class in edu.rit.numeric">Rational</a> abs(int x)</pre>
|
|
<div class="block">Set this rational number to the absolute value of the given number.</div>
|
|
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>x</code> - Integer.</dd>
|
|
<dt><span class="strong">Returns:</span></dt><dd>This rational number, with its value set to <TT>abs(x)</TT>.</dd></dl>
|
|
</li>
|
|
</ul>
|
|
<a name="intPart(edu.rit.numeric.Rational)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>intPart</h4>
|
|
<pre>public <a href="../../../edu/rit/numeric/Rational.html" title="class in edu.rit.numeric">Rational</a> intPart(<a href="../../../edu/rit/numeric/Rational.html" title="class in edu.rit.numeric">Rational</a> x)</pre>
|
|
<div class="block">Set this rational number to the integer part of the given rational
|
|
number.</div>
|
|
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>x</code> - Rational number.</dd>
|
|
<dt><span class="strong">Returns:</span></dt><dd>This rational number, with its value set to <TT>int(x)</TT>.</dd></dl>
|
|
</li>
|
|
</ul>
|
|
<a name="fracPart(edu.rit.numeric.Rational)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>fracPart</h4>
|
|
<pre>public <a href="../../../edu/rit/numeric/Rational.html" title="class in edu.rit.numeric">Rational</a> fracPart(<a href="../../../edu/rit/numeric/Rational.html" title="class in edu.rit.numeric">Rational</a> x)</pre>
|
|
<div class="block">Set this rational number to the fractional part of the given rational
|
|
number.</div>
|
|
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>x</code> - Rational number.</dd>
|
|
<dt><span class="strong">Returns:</span></dt><dd>This rational number, with its value set to <TT>frac(x)</TT>.</dd></dl>
|
|
</li>
|
|
</ul>
|
|
<a name="add(edu.rit.numeric.Rational, edu.rit.numeric.Rational)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>add</h4>
|
|
<pre>public <a href="../../../edu/rit/numeric/Rational.html" title="class in edu.rit.numeric">Rational</a> add(<a href="../../../edu/rit/numeric/Rational.html" title="class in edu.rit.numeric">Rational</a> x,
|
|
<a href="../../../edu/rit/numeric/Rational.html" title="class in edu.rit.numeric">Rational</a> y)</pre>
|
|
<div class="block">Set this rational number to the sum of the given numbers.</div>
|
|
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>x</code> - Rational number.</dd><dd><code>y</code> - Rational number.</dd>
|
|
<dt><span class="strong">Returns:</span></dt><dd>This rational number, with its value set to <TT>x+y</TT>.</dd></dl>
|
|
</li>
|
|
</ul>
|
|
<a name="add(edu.rit.numeric.Rational, int)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>add</h4>
|
|
<pre>public <a href="../../../edu/rit/numeric/Rational.html" title="class in edu.rit.numeric">Rational</a> add(<a href="../../../edu/rit/numeric/Rational.html" title="class in edu.rit.numeric">Rational</a> x,
|
|
int y)</pre>
|
|
<div class="block">Set this rational number to the sum of the given numbers.</div>
|
|
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>x</code> - Rational number.</dd><dd><code>y</code> - Integer.</dd>
|
|
<dt><span class="strong">Returns:</span></dt><dd>This rational number, with its value set to <TT>x+y</TT>.</dd></dl>
|
|
</li>
|
|
</ul>
|
|
<a name="add(int, edu.rit.numeric.Rational)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>add</h4>
|
|
<pre>public <a href="../../../edu/rit/numeric/Rational.html" title="class in edu.rit.numeric">Rational</a> add(int x,
|
|
<a href="../../../edu/rit/numeric/Rational.html" title="class in edu.rit.numeric">Rational</a> y)</pre>
|
|
<div class="block">Set this rational number to the sum of the given numbers.</div>
|
|
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>x</code> - Integer.</dd><dd><code>y</code> - Rational number.</dd>
|
|
<dt><span class="strong">Returns:</span></dt><dd>This rational number, with its value set to <TT>x+y</TT>.</dd></dl>
|
|
</li>
|
|
</ul>
|
|
<a name="add(int, int)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>add</h4>
|
|
<pre>public <a href="../../../edu/rit/numeric/Rational.html" title="class in edu.rit.numeric">Rational</a> add(int x,
|
|
int y)</pre>
|
|
<div class="block">Set this rational number to the sum of the given numbers.</div>
|
|
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>x</code> - Integer.</dd><dd><code>y</code> - Integer.</dd>
|
|
<dt><span class="strong">Returns:</span></dt><dd>This rational number, with its value set to <TT>x+y</TT>.</dd></dl>
|
|
</li>
|
|
</ul>
|
|
<a name="sub(edu.rit.numeric.Rational, edu.rit.numeric.Rational)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>sub</h4>
|
|
<pre>public <a href="../../../edu/rit/numeric/Rational.html" title="class in edu.rit.numeric">Rational</a> sub(<a href="../../../edu/rit/numeric/Rational.html" title="class in edu.rit.numeric">Rational</a> x,
|
|
<a href="../../../edu/rit/numeric/Rational.html" title="class in edu.rit.numeric">Rational</a> y)</pre>
|
|
<div class="block">Set this rational number to the difference of the given numbers.</div>
|
|
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>x</code> - Rational number.</dd><dd><code>y</code> - Rational number.</dd>
|
|
<dt><span class="strong">Returns:</span></dt><dd>This rational number, with its value set to <TT>x-y</TT>.</dd></dl>
|
|
</li>
|
|
</ul>
|
|
<a name="sub(edu.rit.numeric.Rational, int)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>sub</h4>
|
|
<pre>public <a href="../../../edu/rit/numeric/Rational.html" title="class in edu.rit.numeric">Rational</a> sub(<a href="../../../edu/rit/numeric/Rational.html" title="class in edu.rit.numeric">Rational</a> x,
|
|
int y)</pre>
|
|
<div class="block">Set this rational number to the difference of the given numbers.</div>
|
|
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>x</code> - Rational number.</dd><dd><code>y</code> - Integer.</dd>
|
|
<dt><span class="strong">Returns:</span></dt><dd>This rational number, with its value set to <TT>x-y</TT>.</dd></dl>
|
|
</li>
|
|
</ul>
|
|
<a name="sub(int, edu.rit.numeric.Rational)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>sub</h4>
|
|
<pre>public <a href="../../../edu/rit/numeric/Rational.html" title="class in edu.rit.numeric">Rational</a> sub(int x,
|
|
<a href="../../../edu/rit/numeric/Rational.html" title="class in edu.rit.numeric">Rational</a> y)</pre>
|
|
<div class="block">Set this rational number to the difference of the given numbers.</div>
|
|
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>x</code> - Integer.</dd><dd><code>y</code> - Rational number.</dd>
|
|
<dt><span class="strong">Returns:</span></dt><dd>This rational number, with its value set to <TT>x-y</TT>.</dd></dl>
|
|
</li>
|
|
</ul>
|
|
<a name="sub(int, int)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>sub</h4>
|
|
<pre>public <a href="../../../edu/rit/numeric/Rational.html" title="class in edu.rit.numeric">Rational</a> sub(int x,
|
|
int y)</pre>
|
|
<div class="block">Set this rational number to the difference of the given numbers.</div>
|
|
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>x</code> - Integer.</dd><dd><code>y</code> - Integer.</dd>
|
|
<dt><span class="strong">Returns:</span></dt><dd>This rational number, with its value set to <TT>x-y</TT>.</dd></dl>
|
|
</li>
|
|
</ul>
|
|
<a name="mul(edu.rit.numeric.Rational, edu.rit.numeric.Rational)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>mul</h4>
|
|
<pre>public <a href="../../../edu/rit/numeric/Rational.html" title="class in edu.rit.numeric">Rational</a> mul(<a href="../../../edu/rit/numeric/Rational.html" title="class in edu.rit.numeric">Rational</a> x,
|
|
<a href="../../../edu/rit/numeric/Rational.html" title="class in edu.rit.numeric">Rational</a> y)</pre>
|
|
<div class="block">Set this rational number to the product of the given numbers.</div>
|
|
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>x</code> - Rational number.</dd><dd><code>y</code> - Rational number.</dd>
|
|
<dt><span class="strong">Returns:</span></dt><dd>This rational number, with its value set to <TT>x*y</TT>.</dd></dl>
|
|
</li>
|
|
</ul>
|
|
<a name="mul(edu.rit.numeric.Rational, int)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>mul</h4>
|
|
<pre>public <a href="../../../edu/rit/numeric/Rational.html" title="class in edu.rit.numeric">Rational</a> mul(<a href="../../../edu/rit/numeric/Rational.html" title="class in edu.rit.numeric">Rational</a> x,
|
|
int y)</pre>
|
|
<div class="block">Set this rational number to the product of the given numbers.</div>
|
|
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>x</code> - Rational number.</dd><dd><code>y</code> - Integer.</dd>
|
|
<dt><span class="strong">Returns:</span></dt><dd>This rational number, with its value set to <TT>x*y</TT>.</dd></dl>
|
|
</li>
|
|
</ul>
|
|
<a name="mul(int, edu.rit.numeric.Rational)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>mul</h4>
|
|
<pre>public <a href="../../../edu/rit/numeric/Rational.html" title="class in edu.rit.numeric">Rational</a> mul(int x,
|
|
<a href="../../../edu/rit/numeric/Rational.html" title="class in edu.rit.numeric">Rational</a> y)</pre>
|
|
<div class="block">Set this rational number to the product of the given numbers.</div>
|
|
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>x</code> - Integer.</dd><dd><code>y</code> - Rational number.</dd>
|
|
<dt><span class="strong">Returns:</span></dt><dd>This rational number, with its value set to <TT>x*y</TT>.</dd></dl>
|
|
</li>
|
|
</ul>
|
|
<a name="mul(int, int)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>mul</h4>
|
|
<pre>public <a href="../../../edu/rit/numeric/Rational.html" title="class in edu.rit.numeric">Rational</a> mul(int x,
|
|
int y)</pre>
|
|
<div class="block">Set this rational number to the product of the given numbers.</div>
|
|
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>x</code> - Integer.</dd><dd><code>y</code> - Integer.</dd>
|
|
<dt><span class="strong">Returns:</span></dt><dd>This rational number, with its value set to <TT>x*y</TT>.</dd></dl>
|
|
</li>
|
|
</ul>
|
|
<a name="div(edu.rit.numeric.Rational, edu.rit.numeric.Rational)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>div</h4>
|
|
<pre>public <a href="../../../edu/rit/numeric/Rational.html" title="class in edu.rit.numeric">Rational</a> div(<a href="../../../edu/rit/numeric/Rational.html" title="class in edu.rit.numeric">Rational</a> x,
|
|
<a href="../../../edu/rit/numeric/Rational.html" title="class in edu.rit.numeric">Rational</a> y)</pre>
|
|
<div class="block">Set this rational number to the quotient of the given numbers.</div>
|
|
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>x</code> - Rational number.</dd><dd><code>y</code> - Rational number.</dd>
|
|
<dt><span class="strong">Returns:</span></dt><dd>This rational number, with its value set to <TT>x/y</TT>.</dd>
|
|
<dt><span class="strong">Throws:</span></dt>
|
|
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/ArithmeticException.html?is-external=true" title="class or interface in java.lang">ArithmeticException</a></code> - (unchecked exception) Thrown if <TT>y</TT> is 0.</dd></dl>
|
|
</li>
|
|
</ul>
|
|
<a name="div(edu.rit.numeric.Rational, int)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>div</h4>
|
|
<pre>public <a href="../../../edu/rit/numeric/Rational.html" title="class in edu.rit.numeric">Rational</a> div(<a href="../../../edu/rit/numeric/Rational.html" title="class in edu.rit.numeric">Rational</a> x,
|
|
int y)</pre>
|
|
<div class="block">Set this rational number to the quotient of the given numbers.</div>
|
|
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>x</code> - Rational number.</dd><dd><code>y</code> - Integer.</dd>
|
|
<dt><span class="strong">Returns:</span></dt><dd>This rational number, with its value set to <TT>x/y</TT>.</dd>
|
|
<dt><span class="strong">Throws:</span></dt>
|
|
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/ArithmeticException.html?is-external=true" title="class or interface in java.lang">ArithmeticException</a></code> - (unchecked exception) Thrown if <TT>y</TT> is 0.</dd></dl>
|
|
</li>
|
|
</ul>
|
|
<a name="div(int, edu.rit.numeric.Rational)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>div</h4>
|
|
<pre>public <a href="../../../edu/rit/numeric/Rational.html" title="class in edu.rit.numeric">Rational</a> div(int x,
|
|
<a href="../../../edu/rit/numeric/Rational.html" title="class in edu.rit.numeric">Rational</a> y)</pre>
|
|
<div class="block">Set this rational number to the quotient of the given numbers.</div>
|
|
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>x</code> - Integer.</dd><dd><code>y</code> - Rational number.</dd>
|
|
<dt><span class="strong">Returns:</span></dt><dd>This rational number, with its value set to <TT>x/y</TT>.</dd>
|
|
<dt><span class="strong">Throws:</span></dt>
|
|
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/ArithmeticException.html?is-external=true" title="class or interface in java.lang">ArithmeticException</a></code> - (unchecked exception) Thrown if <TT>y</TT> is 0.</dd></dl>
|
|
</li>
|
|
</ul>
|
|
<a name="div(int, int)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>div</h4>
|
|
<pre>public <a href="../../../edu/rit/numeric/Rational.html" title="class in edu.rit.numeric">Rational</a> div(int x,
|
|
int y)</pre>
|
|
<div class="block">Set this rational number to the quotient of the given numbers.</div>
|
|
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>x</code> - Integer.</dd><dd><code>y</code> - Integer.</dd>
|
|
<dt><span class="strong">Returns:</span></dt><dd>This rational number, with its value set to <TT>x/y</TT>.</dd>
|
|
<dt><span class="strong">Throws:</span></dt>
|
|
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/ArithmeticException.html?is-external=true" title="class or interface in java.lang">ArithmeticException</a></code> - (unchecked exception) Thrown if <TT>y</TT> is 0.</dd></dl>
|
|
</li>
|
|
</ul>
|
|
<a name="min(edu.rit.numeric.Rational, edu.rit.numeric.Rational)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>min</h4>
|
|
<pre>public <a href="../../../edu/rit/numeric/Rational.html" title="class in edu.rit.numeric">Rational</a> min(<a href="../../../edu/rit/numeric/Rational.html" title="class in edu.rit.numeric">Rational</a> x,
|
|
<a href="../../../edu/rit/numeric/Rational.html" title="class in edu.rit.numeric">Rational</a> y)</pre>
|
|
<div class="block">Set this rational number to the minimum of the given numbers.</div>
|
|
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>x</code> - Rational number.</dd><dd><code>y</code> - Rational number.</dd>
|
|
<dt><span class="strong">Returns:</span></dt><dd>This rational number, with its value set to the smaller of
|
|
<TT>x</TT> and <TT>y</TT>.</dd></dl>
|
|
</li>
|
|
</ul>
|
|
<a name="min(edu.rit.numeric.Rational, int)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>min</h4>
|
|
<pre>public <a href="../../../edu/rit/numeric/Rational.html" title="class in edu.rit.numeric">Rational</a> min(<a href="../../../edu/rit/numeric/Rational.html" title="class in edu.rit.numeric">Rational</a> x,
|
|
int y)</pre>
|
|
<div class="block">Set this rational number to the minimum of the given numbers.</div>
|
|
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>x</code> - Rational number.</dd><dd><code>y</code> - Integer.</dd>
|
|
<dt><span class="strong">Returns:</span></dt><dd>This rational number, with its value set to the smaller of
|
|
<TT>x</TT> and <TT>y</TT>.</dd></dl>
|
|
</li>
|
|
</ul>
|
|
<a name="min(int, edu.rit.numeric.Rational)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>min</h4>
|
|
<pre>public <a href="../../../edu/rit/numeric/Rational.html" title="class in edu.rit.numeric">Rational</a> min(int x,
|
|
<a href="../../../edu/rit/numeric/Rational.html" title="class in edu.rit.numeric">Rational</a> y)</pre>
|
|
<div class="block">Set this rational number to the minimum of the given numbers.</div>
|
|
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>x</code> - Integer.</dd><dd><code>y</code> - Rational number.</dd>
|
|
<dt><span class="strong">Returns:</span></dt><dd>This rational number, with its value set to the smaller of
|
|
<TT>x</TT> and <TT>y</TT>.</dd></dl>
|
|
</li>
|
|
</ul>
|
|
<a name="min(int, int)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>min</h4>
|
|
<pre>public <a href="../../../edu/rit/numeric/Rational.html" title="class in edu.rit.numeric">Rational</a> min(int x,
|
|
int y)</pre>
|
|
<div class="block">Set this rational number to the minimum of the given numbers.</div>
|
|
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>x</code> - Integer.</dd><dd><code>y</code> - Integer.</dd>
|
|
<dt><span class="strong">Returns:</span></dt><dd>This rational number, with its value set to the smaller of
|
|
<TT>x</TT> and <TT>y</TT>.</dd></dl>
|
|
</li>
|
|
</ul>
|
|
<a name="max(edu.rit.numeric.Rational, edu.rit.numeric.Rational)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>max</h4>
|
|
<pre>public <a href="../../../edu/rit/numeric/Rational.html" title="class in edu.rit.numeric">Rational</a> max(<a href="../../../edu/rit/numeric/Rational.html" title="class in edu.rit.numeric">Rational</a> x,
|
|
<a href="../../../edu/rit/numeric/Rational.html" title="class in edu.rit.numeric">Rational</a> y)</pre>
|
|
<div class="block">Set this rational number to the maximum of the given numbers.</div>
|
|
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>x</code> - Rational number.</dd><dd><code>y</code> - Rational number.</dd>
|
|
<dt><span class="strong">Returns:</span></dt><dd>This rational number, with its value set to the larger of
|
|
<TT>x</TT> and <TT>y</TT>.</dd></dl>
|
|
</li>
|
|
</ul>
|
|
<a name="max(edu.rit.numeric.Rational, int)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>max</h4>
|
|
<pre>public <a href="../../../edu/rit/numeric/Rational.html" title="class in edu.rit.numeric">Rational</a> max(<a href="../../../edu/rit/numeric/Rational.html" title="class in edu.rit.numeric">Rational</a> x,
|
|
int y)</pre>
|
|
<div class="block">Set this rational number to the maximum of the given numbers.</div>
|
|
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>x</code> - Rational number.</dd><dd><code>y</code> - Integer.</dd>
|
|
<dt><span class="strong">Returns:</span></dt><dd>This rational number, with its value set to the larger of
|
|
<TT>x</TT> and <TT>y</TT>.</dd></dl>
|
|
</li>
|
|
</ul>
|
|
<a name="max(int, edu.rit.numeric.Rational)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>max</h4>
|
|
<pre>public <a href="../../../edu/rit/numeric/Rational.html" title="class in edu.rit.numeric">Rational</a> max(int x,
|
|
<a href="../../../edu/rit/numeric/Rational.html" title="class in edu.rit.numeric">Rational</a> y)</pre>
|
|
<div class="block">Set this rational number to the maximum of the given numbers.</div>
|
|
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>x</code> - Integer.</dd><dd><code>y</code> - Rational number.</dd>
|
|
<dt><span class="strong">Returns:</span></dt><dd>This rational number, with its value set to the larger of
|
|
<TT>x</TT> and <TT>y</TT>.</dd></dl>
|
|
</li>
|
|
</ul>
|
|
<a name="max(int, int)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>max</h4>
|
|
<pre>public <a href="../../../edu/rit/numeric/Rational.html" title="class in edu.rit.numeric">Rational</a> max(int x,
|
|
int y)</pre>
|
|
<div class="block">Set this rational number to the maximum of the given numbers.</div>
|
|
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>x</code> - Integer.</dd><dd><code>y</code> - Integer.</dd>
|
|
<dt><span class="strong">Returns:</span></dt><dd>This rational number, with its value set to the larger of
|
|
<TT>x</TT> and <TT>y</TT>.</dd></dl>
|
|
</li>
|
|
</ul>
|
|
<a name="eqZero()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>eqZero</h4>
|
|
<pre>public boolean eqZero()</pre>
|
|
<div class="block">Determine if this rational number is equal to zero.</div>
|
|
<dl><dt><span class="strong">Returns:</span></dt><dd>True if this rational number is equal to 0, false otherwise.</dd></dl>
|
|
</li>
|
|
</ul>
|
|
<a name="neZero()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>neZero</h4>
|
|
<pre>public boolean neZero()</pre>
|
|
<div class="block">Determine if this rational number is not equal to zero.</div>
|
|
<dl><dt><span class="strong">Returns:</span></dt><dd>True if this rational number is not equal to 0, false otherwise.</dd></dl>
|
|
</li>
|
|
</ul>
|
|
<a name="ltZero()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>ltZero</h4>
|
|
<pre>public boolean ltZero()</pre>
|
|
<div class="block">Determine if this rational number is less than zero.</div>
|
|
<dl><dt><span class="strong">Returns:</span></dt><dd>True if this rational number is less than 0, false otherwise.</dd></dl>
|
|
</li>
|
|
</ul>
|
|
<a name="leZero()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>leZero</h4>
|
|
<pre>public boolean leZero()</pre>
|
|
<div class="block">Determine if this rational number is less than or equal to zero.</div>
|
|
<dl><dt><span class="strong">Returns:</span></dt><dd>True if this rational number is less than or equal to 0, false
|
|
otherwise.</dd></dl>
|
|
</li>
|
|
</ul>
|
|
<a name="gtZero()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>gtZero</h4>
|
|
<pre>public boolean gtZero()</pre>
|
|
<div class="block">Determine if this rational number is greater than zero.</div>
|
|
<dl><dt><span class="strong">Returns:</span></dt><dd>True if this rational number is greater than 0, false otherwise.</dd></dl>
|
|
</li>
|
|
</ul>
|
|
<a name="geZero()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>geZero</h4>
|
|
<pre>public boolean geZero()</pre>
|
|
<div class="block">Determine if this rational number is greater than or equal to zero.</div>
|
|
<dl><dt><span class="strong">Returns:</span></dt><dd>True if this rational number is greater than or equal to 0,
|
|
false otherwise.</dd></dl>
|
|
</li>
|
|
</ul>
|
|
<a name="eq(edu.rit.numeric.Rational)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>eq</h4>
|
|
<pre>public boolean eq(<a href="../../../edu/rit/numeric/Rational.html" title="class in edu.rit.numeric">Rational</a> x)</pre>
|
|
<div class="block">Determine if this rational number is equal to the given number.</div>
|
|
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>x</code> - Rational number.</dd>
|
|
<dt><span class="strong">Returns:</span></dt><dd>True if this rational number is equal to <TT>x</TT>, false
|
|
otherwise.</dd></dl>
|
|
</li>
|
|
</ul>
|
|
<a name="eq(int)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>eq</h4>
|
|
<pre>public boolean eq(int x)</pre>
|
|
<div class="block">Determine if this rational number is equal to the given number.</div>
|
|
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>x</code> - Integer.</dd>
|
|
<dt><span class="strong">Returns:</span></dt><dd>True if this rational number is equal to <TT>x</TT>, false
|
|
otherwise.</dd></dl>
|
|
</li>
|
|
</ul>
|
|
<a name="ne(edu.rit.numeric.Rational)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>ne</h4>
|
|
<pre>public boolean ne(<a href="../../../edu/rit/numeric/Rational.html" title="class in edu.rit.numeric">Rational</a> x)</pre>
|
|
<div class="block">Determine if this rational number is not equal to the given number.</div>
|
|
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>x</code> - Rational number.</dd>
|
|
<dt><span class="strong">Returns:</span></dt><dd>True if this rational number is not equal to <TT>x</TT>, false
|
|
otherwise.</dd></dl>
|
|
</li>
|
|
</ul>
|
|
<a name="ne(int)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>ne</h4>
|
|
<pre>public boolean ne(int x)</pre>
|
|
<div class="block">Determine if this rational number is not equal to the given number.</div>
|
|
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>x</code> - Integer.</dd>
|
|
<dt><span class="strong">Returns:</span></dt><dd>True if this rational number is not equal to <TT>x</TT>, false
|
|
otherwise.</dd></dl>
|
|
</li>
|
|
</ul>
|
|
<a name="lt(edu.rit.numeric.Rational)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>lt</h4>
|
|
<pre>public boolean lt(<a href="../../../edu/rit/numeric/Rational.html" title="class in edu.rit.numeric">Rational</a> x)</pre>
|
|
<div class="block">Determine if this rational number is less than the given number.</div>
|
|
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>x</code> - Rational number.</dd>
|
|
<dt><span class="strong">Returns:</span></dt><dd>True if this rational number is less than <TT>x</TT>, false
|
|
otherwise.</dd></dl>
|
|
</li>
|
|
</ul>
|
|
<a name="lt(int)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>lt</h4>
|
|
<pre>public boolean lt(int x)</pre>
|
|
<div class="block">Determine if this rational number is less than the given number.</div>
|
|
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>x</code> - Integer.</dd>
|
|
<dt><span class="strong">Returns:</span></dt><dd>True if this rational number is less than <TT>x</TT>, false
|
|
otherwise.</dd></dl>
|
|
</li>
|
|
</ul>
|
|
<a name="le(edu.rit.numeric.Rational)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>le</h4>
|
|
<pre>public boolean le(<a href="../../../edu/rit/numeric/Rational.html" title="class in edu.rit.numeric">Rational</a> x)</pre>
|
|
<div class="block">Determine if this rational number is less than or equal to the given
|
|
number.</div>
|
|
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>x</code> - Rational number.</dd>
|
|
<dt><span class="strong">Returns:</span></dt><dd>True if this rational number is less than or equal to
|
|
<TT>x</TT>, false otherwise.</dd></dl>
|
|
</li>
|
|
</ul>
|
|
<a name="le(int)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>le</h4>
|
|
<pre>public boolean le(int x)</pre>
|
|
<div class="block">Determine if this rational number is less than or equal to the given
|
|
number.</div>
|
|
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>x</code> - Integer.</dd>
|
|
<dt><span class="strong">Returns:</span></dt><dd>True if this rational number is less than or equal to
|
|
<TT>x</TT>, false otherwise.</dd></dl>
|
|
</li>
|
|
</ul>
|
|
<a name="gt(edu.rit.numeric.Rational)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>gt</h4>
|
|
<pre>public boolean gt(<a href="../../../edu/rit/numeric/Rational.html" title="class in edu.rit.numeric">Rational</a> x)</pre>
|
|
<div class="block">Determine if this rational number is greater than the given number.</div>
|
|
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>x</code> - Rational number.</dd>
|
|
<dt><span class="strong">Returns:</span></dt><dd>True if this rational number is greater than <TT>x</TT>, false
|
|
otherwise.</dd></dl>
|
|
</li>
|
|
</ul>
|
|
<a name="gt(int)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>gt</h4>
|
|
<pre>public boolean gt(int x)</pre>
|
|
<div class="block">Determine if this rational number is greater than the given number.</div>
|
|
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>x</code> - Integer.</dd>
|
|
<dt><span class="strong">Returns:</span></dt><dd>True if this rational number is greater than <TT>x</TT>, false
|
|
otherwise.</dd></dl>
|
|
</li>
|
|
</ul>
|
|
<a name="ge(edu.rit.numeric.Rational)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>ge</h4>
|
|
<pre>public boolean ge(<a href="../../../edu/rit/numeric/Rational.html" title="class in edu.rit.numeric">Rational</a> x)</pre>
|
|
<div class="block">Determine if this rational number is greater than or equal to the given
|
|
number.</div>
|
|
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>x</code> - Rational number.</dd>
|
|
<dt><span class="strong">Returns:</span></dt><dd>True if this rational number is greater than or equal to
|
|
<TT>x</TT>, false otherwise.</dd></dl>
|
|
</li>
|
|
</ul>
|
|
<a name="ge(int)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>ge</h4>
|
|
<pre>public boolean ge(int x)</pre>
|
|
<div class="block">Determine if this rational number is greater than or equal to the given
|
|
number.</div>
|
|
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>x</code> - Integer.</dd>
|
|
<dt><span class="strong">Returns:</span></dt><dd>True if this rational number is greater than or equal to
|
|
<TT>x</TT>, false otherwise.</dd></dl>
|
|
</li>
|
|
</ul>
|
|
<a name="intValue()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>intValue</h4>
|
|
<pre>public int intValue()</pre>
|
|
<div class="block">Converts this rational number to an integer. If this rational number is
|
|
not an exact integer, any fractional part is truncated.</div>
|
|
<dl><dt><span class="strong">Returns:</span></dt><dd>Integer value of this rational number.</dd></dl>
|
|
</li>
|
|
</ul>
|
|
<a name="longValue()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>longValue</h4>
|
|
<pre>public long longValue()</pre>
|
|
<div class="block">Converts this rational number to a long integer. If this rational number
|
|
is not an exact integer, any fractional part is truncated.</div>
|
|
<dl><dt><span class="strong">Returns:</span></dt><dd>Long integer value of this rational number.</dd></dl>
|
|
</li>
|
|
</ul>
|
|
<a name="floatValue()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>floatValue</h4>
|
|
<pre>public float floatValue()</pre>
|
|
<div class="block">Converts this rational number to a single precision floating point
|
|
number.</div>
|
|
<dl><dt><span class="strong">Returns:</span></dt><dd>Single precision floating point value of this rational number.</dd></dl>
|
|
</li>
|
|
</ul>
|
|
<a name="doubleValue()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>doubleValue</h4>
|
|
<pre>public double doubleValue()</pre>
|
|
<div class="block">Converts this rational number to a double precision floating point
|
|
number.</div>
|
|
<dl><dt><span class="strong">Returns:</span></dt><dd>Double precision floating point value of this rational number.</dd></dl>
|
|
</li>
|
|
</ul>
|
|
<a name="toString()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>toString</h4>
|
|
<pre>public <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> toString()</pre>
|
|
<div class="block">Returns a string version of this rational number. If this rational number
|
|
is an exact integer, the string is in the form <TT>"<numer>"</TT>,
|
|
otherwise the string is in the form
|
|
<TT>"<numer>/<denom>"</TT>. If this rational number is less
|
|
than 0, the string begins with a minus sign (<TT>-</TT>).</div>
|
|
<dl>
|
|
<dt><strong>Overrides:</strong></dt>
|
|
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#toString()" title="class or interface in java.lang">toString</a></code> in class <code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></code></dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a name="equals(java.lang.Object)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>equals</h4>
|
|
<pre>public boolean equals(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> obj)</pre>
|
|
<div class="block">Determine if this rational number is equal to the given object. To be
|
|
equal, <TT>obj</TT> must be a non-null instance of class Rational whose
|
|
value is the same as this rational number's value.</div>
|
|
<dl>
|
|
<dt><strong>Overrides:</strong></dt>
|
|
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#equals(java.lang.Object)" title="class or interface in java.lang">equals</a></code> in class <code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></code></dd>
|
|
<dt><span class="strong">Parameters:</span></dt><dd><code>obj</code> - Object to test.</dd>
|
|
<dt><span class="strong">Returns:</span></dt><dd>True if this rational number is equal to <TT>obj</TT>, false
|
|
otherwise.</dd></dl>
|
|
</li>
|
|
</ul>
|
|
<a name="hashCode()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>hashCode</h4>
|
|
<pre>public int hashCode()</pre>
|
|
<div class="block">Returns a hash code for this rational number.</div>
|
|
<dl>
|
|
<dt><strong>Overrides:</strong></dt>
|
|
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#hashCode()" title="class or interface in java.lang">hashCode</a></code> in class <code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></code></dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a name="compareTo(java.lang.Object)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockListLast">
|
|
<li class="blockList">
|
|
<h4>compareTo</h4>
|
|
<pre>public int compareTo(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> obj)</pre>
|
|
<div class="block">Compare this rational number to the given object.</div>
|
|
<dl>
|
|
<dt><strong>Specified by:</strong></dt>
|
|
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Comparable.html?is-external=true#compareTo(T)" title="class or interface in java.lang">compareTo</a></code> in interface <code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Comparable.html?is-external=true" title="class or interface in java.lang">Comparable</a></code></dd>
|
|
<dt><span class="strong">Parameters:</span></dt><dd><code>obj</code> - Object to compare to.</dd>
|
|
<dt><span class="strong">Returns:</span></dt><dd>A number less than, equal to, or greater than 0 if this rational
|
|
number is less than, equal to, or greater than <TT>obj</TT>,
|
|
respectively.</dd>
|
|
<dt><span class="strong">Throws:</span></dt>
|
|
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/NullPointerException.html?is-external=true" title="class or interface in java.lang">NullPointerException</a></code> - (unchecked exception) Thrown if <TT>obj</TT> is null.</dd>
|
|
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/ClassCastException.html?is-external=true" title="class or interface in java.lang">ClassCastException</a></code> - (unchecked exception) Thrown if <TT>obj</TT> is not an instance of
|
|
class Rational.</dd></dl>
|
|
</li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
<!-- ========= END OF CLASS DATA ========= -->
|
|
<!-- ======= START OF BOTTOM NAVBAR ====== -->
|
|
<div class="bottomNav"><a name="navbar_bottom">
|
|
<!-- -->
|
|
</a><a href="#skip-navbar_bottom" title="Skip navigation links"></a><a name="navbar_bottom_firstrow">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="navList" title="Navigation">
|
|
<li><a href="../../../overview-summary.html">Overview</a></li>
|
|
<li><a href="package-summary.html">Package</a></li>
|
|
<li class="navBarCell1Rev">Class</li>
|
|
<li><a href="class-use/Rational.html">Use</a></li>
|
|
<li><a href="package-tree.html">Tree</a></li>
|
|
<li><a href="../../../deprecated-list.html">Deprecated</a></li>
|
|
<li><a href="../../../index-files/index-1.html">Index</a></li>
|
|
<li><a href="../../../help-doc.html">Help</a></li>
|
|
</ul>
|
|
</div>
|
|
<div class="subNav">
|
|
<ul class="navList">
|
|
<li><a href="../../../edu/rit/numeric/RangeException.html" title="class in edu.rit.numeric"><span class="strong">Prev Class</span></a></li>
|
|
<li><a href="../../../edu/rit/numeric/RobustFit.html" title="class in edu.rit.numeric"><span class="strong">Next Class</span></a></li>
|
|
</ul>
|
|
<ul class="navList">
|
|
<li><a href="../../../index.html?edu/rit/numeric/Rational.html" target="_top">Frames</a></li>
|
|
<li><a href="Rational.html" target="_top">No Frames</a></li>
|
|
</ul>
|
|
<ul class="navList" id="allclasses_navbar_bottom">
|
|
<li><a href="../../../allclasses-noframe.html">All Classes</a></li>
|
|
</ul>
|
|
<div>
|
|
<script type="text/javascript"><!--
|
|
allClassesLink = document.getElementById("allclasses_navbar_bottom");
|
|
if(window==top) {
|
|
allClassesLink.style.display = "block";
|
|
}
|
|
else {
|
|
allClassesLink.style.display = "none";
|
|
}
|
|
//-->
|
|
</script>
|
|
</div>
|
|
<div>
|
|
<ul class="subNavList">
|
|
<li>Summary: </li>
|
|
<li>Nested | </li>
|
|
<li>Field | </li>
|
|
<li><a href="#constructor_summary">Constr</a> | </li>
|
|
<li><a href="#method_summary">Method</a></li>
|
|
</ul>
|
|
<ul class="subNavList">
|
|
<li>Detail: </li>
|
|
<li>Field | </li>
|
|
<li><a href="#constructor_detail">Constr</a> | </li>
|
|
<li><a href="#method_detail">Method</a></li>
|
|
</ul>
|
|
</div>
|
|
<a name="skip-navbar_bottom">
|
|
<!-- -->
|
|
</a></div>
|
|
<!-- ======== END OF BOTTOM NAVBAR ======= -->
|
|
<p class="legalCopy"><small><FONT SIZE="-2">Copyright © 2013–2016 by Alan Kaminsky. All rights reserved. Send comments to ark</FONT><FONT SIZE="1" COLOR="#FFFFFF">­</FONT><FONT SIZE="-2">@</FONT><FONT SIZE="1" COLOR="#FFFFFF">­</FONT><FONT SIZE="-2">cs.rit.edu.</FONT></small></p>
|
|
</body>
|
|
</html>
|