Files
2016-04-27 01:07:35 -04:00

598 lines
41 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:13 EDT 2016 -->
<title>Uses of Class edu.rit.numeric.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="Uses of Class edu.rit.numeric.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><a href="../../../../edu/rit/numeric/Rational.html" title="class in edu.rit.numeric">Class</a></li>
<li class="navBarCell1Rev">Use</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>Prev</li>
<li>Next</li>
</ul>
<ul class="navList">
<li><a href="../../../../index.html?edu/rit/numeric/class-use/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>
<a name="skip-navbar_top">
<!-- -->
</a></div>
<!-- ========= END OF TOP NAVBAR ========= -->
<div class="header">
<h2 title="Uses of Class edu.rit.numeric.Rational" class="title">Uses of Class<br>edu.rit.numeric.Rational</h2>
</div>
<div class="classUseContainer">
<ul class="blockList">
<li class="blockList">
<table border="0" cellpadding="3" cellspacing="0" summary="Use table, listing packages, and an explanation">
<caption><span>Packages that use <a href="../../../../edu/rit/numeric/Rational.html" title="class in edu.rit.numeric">Rational</a></span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colFirst" scope="col">Package</th>
<th class="colLast" scope="col">Description</th>
</tr>
<tbody>
<tr class="altColor">
<td class="colFirst"><a href="#edu.rit.numeric">edu.rit.numeric</a></td>
<td class="colLast">
<div class="block">Package edu.rit.numeric
contains common classes for numerical computation.</div>
</td>
</tr>
</tbody>
</table>
</li>
<li class="blockList">
<ul class="blockList">
<li class="blockList"><a name="edu.rit.numeric">
<!-- -->
</a>
<h3>Uses of <a href="../../../../edu/rit/numeric/Rational.html" title="class in edu.rit.numeric">Rational</a> in <a href="../../../../edu/rit/numeric/package-summary.html">edu.rit.numeric</a></h3>
<table border="0" cellpadding="3" cellspacing="0" summary="Use table, listing methods, and an explanation">
<caption><span>Methods in <a href="../../../../edu/rit/numeric/package-summary.html">edu.rit.numeric</a> that return <a href="../../../../edu/rit/numeric/Rational.html" title="class in edu.rit.numeric">Rational</a></span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Method and Description</th>
</tr>
<tbody>
<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"><span class="strong">Rational.</span><code><strong><a href="../../../../edu/rit/numeric/Rational.html#abs(int)">abs</a></strong>(int&nbsp;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"><span class="strong">Rational.</span><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>&nbsp;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"><span class="strong">Rational.</span><code><strong><a href="../../../../edu/rit/numeric/Rational.html#add(int, int)">add</a></strong>(int&nbsp;x,
int&nbsp;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"><span class="strong">Rational.</span><code><strong><a href="../../../../edu/rit/numeric/Rational.html#add(int, edu.rit.numeric.Rational)">add</a></strong>(int&nbsp;x,
<a href="../../../../edu/rit/numeric/Rational.html" title="class in edu.rit.numeric">Rational</a>&nbsp;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"><span class="strong">Rational.</span><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>&nbsp;x,
int&nbsp;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"><span class="strong">Rational.</span><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>&nbsp;x,
<a href="../../../../edu/rit/numeric/Rational.html" title="class in edu.rit.numeric">Rational</a>&nbsp;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"><span class="strong">Rational.</span><code><strong><a href="../../../../edu/rit/numeric/Rational.html#assign(int)">assign</a></strong>(int&nbsp;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"><span class="strong">Rational.</span><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>&nbsp;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"><span class="strong">Rational.</span><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>&nbsp;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><a href="../../../../edu/rit/numeric/Rational.html" title="class in edu.rit.numeric">Rational</a></code></td>
<td class="colLast"><span class="strong">Rational.</span><code><strong><a href="../../../../edu/rit/numeric/Rational.html#div(int, int)">div</a></strong>(int&nbsp;x,
int&nbsp;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"><span class="strong">Rational.</span><code><strong><a href="../../../../edu/rit/numeric/Rational.html#div(int, edu.rit.numeric.Rational)">div</a></strong>(int&nbsp;x,
<a href="../../../../edu/rit/numeric/Rational.html" title="class in edu.rit.numeric">Rational</a>&nbsp;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"><span class="strong">Rational.</span><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>&nbsp;x,
int&nbsp;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"><span class="strong">Rational.</span><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>&nbsp;x,
<a href="../../../../edu/rit/numeric/Rational.html" title="class in edu.rit.numeric">Rational</a>&nbsp;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"><span class="strong">Rational.</span><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>&nbsp;x)</code>
<div class="block">Set this rational number to the fractional part of the given 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"><span class="strong">Rational.</span><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>&nbsp;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><a href="../../../../edu/rit/numeric/Rational.html" title="class in edu.rit.numeric">Rational</a></code></td>
<td class="colLast"><span class="strong">Rational.</span><code><strong><a href="../../../../edu/rit/numeric/Rational.html#max(int, int)">max</a></strong>(int&nbsp;x,
int&nbsp;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"><span class="strong">Rational.</span><code><strong><a href="../../../../edu/rit/numeric/Rational.html#max(int, edu.rit.numeric.Rational)">max</a></strong>(int&nbsp;x,
<a href="../../../../edu/rit/numeric/Rational.html" title="class in edu.rit.numeric">Rational</a>&nbsp;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"><span class="strong">Rational.</span><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>&nbsp;x,
int&nbsp;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"><span class="strong">Rational.</span><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>&nbsp;x,
<a href="../../../../edu/rit/numeric/Rational.html" title="class in edu.rit.numeric">Rational</a>&nbsp;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"><span class="strong">Rational.</span><code><strong><a href="../../../../edu/rit/numeric/Rational.html#min(int, int)">min</a></strong>(int&nbsp;x,
int&nbsp;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"><span class="strong">Rational.</span><code><strong><a href="../../../../edu/rit/numeric/Rational.html#min(int, edu.rit.numeric.Rational)">min</a></strong>(int&nbsp;x,
<a href="../../../../edu/rit/numeric/Rational.html" title="class in edu.rit.numeric">Rational</a>&nbsp;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"><span class="strong">Rational.</span><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>&nbsp;x,
int&nbsp;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"><span class="strong">Rational.</span><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>&nbsp;x,
<a href="../../../../edu/rit/numeric/Rational.html" title="class in edu.rit.numeric">Rational</a>&nbsp;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"><span class="strong">Rational.</span><code><strong><a href="../../../../edu/rit/numeric/Rational.html#mul(int, int)">mul</a></strong>(int&nbsp;x,
int&nbsp;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"><span class="strong">Rational.</span><code><strong><a href="../../../../edu/rit/numeric/Rational.html#mul(int, edu.rit.numeric.Rational)">mul</a></strong>(int&nbsp;x,
<a href="../../../../edu/rit/numeric/Rational.html" title="class in edu.rit.numeric">Rational</a>&nbsp;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"><span class="strong">Rational.</span><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>&nbsp;x,
int&nbsp;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"><span class="strong">Rational.</span><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>&nbsp;x,
<a href="../../../../edu/rit/numeric/Rational.html" title="class in edu.rit.numeric">Rational</a>&nbsp;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"><span class="strong">Rational.</span><code><strong><a href="../../../../edu/rit/numeric/Rational.html#neg(int)">neg</a></strong>(int&nbsp;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"><span class="strong">Rational.</span><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>&nbsp;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><a href="../../../../edu/rit/numeric/Rational.html" title="class in edu.rit.numeric">Rational</a></code></td>
<td class="colLast"><span class="strong">Rational.</span><code><strong><a href="../../../../edu/rit/numeric/Rational.html#sub(int, int)">sub</a></strong>(int&nbsp;x,
int&nbsp;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"><span class="strong">Rational.</span><code><strong><a href="../../../../edu/rit/numeric/Rational.html#sub(int, edu.rit.numeric.Rational)">sub</a></strong>(int&nbsp;x,
<a href="../../../../edu/rit/numeric/Rational.html" title="class in edu.rit.numeric">Rational</a>&nbsp;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"><span class="strong">Rational.</span><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>&nbsp;x,
int&nbsp;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"><span class="strong">Rational.</span><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>&nbsp;x,
<a href="../../../../edu/rit/numeric/Rational.html" title="class in edu.rit.numeric">Rational</a>&nbsp;y)</code>
<div class="block">Set this rational number to the difference of the given numbers.</div>
</td>
</tr>
</tbody>
</table>
<table border="0" cellpadding="3" cellspacing="0" summary="Use table, listing methods, and an explanation">
<caption><span>Methods in <a href="../../../../edu/rit/numeric/package-summary.html">edu.rit.numeric</a> with parameters of type <a href="../../../../edu/rit/numeric/Rational.html" title="class in edu.rit.numeric">Rational</a></span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Method and Description</th>
</tr>
<tbody>
<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"><span class="strong">Rational.</span><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>&nbsp;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"><span class="strong">Rational.</span><code><strong><a href="../../../../edu/rit/numeric/Rational.html#add(int, edu.rit.numeric.Rational)">add</a></strong>(int&nbsp;x,
<a href="../../../../edu/rit/numeric/Rational.html" title="class in edu.rit.numeric">Rational</a>&nbsp;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"><span class="strong">Rational.</span><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>&nbsp;x,
int&nbsp;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"><span class="strong">Rational.</span><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>&nbsp;x,
<a href="../../../../edu/rit/numeric/Rational.html" title="class in edu.rit.numeric">Rational</a>&nbsp;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"><span class="strong">Rational.</span><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>&nbsp;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"><span class="strong">Rational.</span><code><strong><a href="../../../../edu/rit/numeric/Rational.html#div(int, edu.rit.numeric.Rational)">div</a></strong>(int&nbsp;x,
<a href="../../../../edu/rit/numeric/Rational.html" title="class in edu.rit.numeric">Rational</a>&nbsp;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"><span class="strong">Rational.</span><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>&nbsp;x,
int&nbsp;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"><span class="strong">Rational.</span><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>&nbsp;x,
<a href="../../../../edu/rit/numeric/Rational.html" title="class in edu.rit.numeric">Rational</a>&nbsp;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>boolean</code></td>
<td class="colLast"><span class="strong">Rational.</span><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>&nbsp;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><a href="../../../../edu/rit/numeric/Rational.html" title="class in edu.rit.numeric">Rational</a></code></td>
<td class="colLast"><span class="strong">Rational.</span><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>&nbsp;x)</code>
<div class="block">Set this rational number to the fractional part of the given rational
number.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><span class="strong">Rational.</span><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>&nbsp;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"><span class="strong">Rational.</span><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>&nbsp;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><a href="../../../../edu/rit/numeric/Rational.html" title="class in edu.rit.numeric">Rational</a></code></td>
<td class="colLast"><span class="strong">Rational.</span><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>&nbsp;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>boolean</code></td>
<td class="colLast"><span class="strong">Rational.</span><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>&nbsp;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"><span class="strong">Rational.</span><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>&nbsp;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><a href="../../../../edu/rit/numeric/Rational.html" title="class in edu.rit.numeric">Rational</a></code></td>
<td class="colLast"><span class="strong">Rational.</span><code><strong><a href="../../../../edu/rit/numeric/Rational.html#max(int, edu.rit.numeric.Rational)">max</a></strong>(int&nbsp;x,
<a href="../../../../edu/rit/numeric/Rational.html" title="class in edu.rit.numeric">Rational</a>&nbsp;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"><span class="strong">Rational.</span><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>&nbsp;x,
int&nbsp;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"><span class="strong">Rational.</span><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>&nbsp;x,
<a href="../../../../edu/rit/numeric/Rational.html" title="class in edu.rit.numeric">Rational</a>&nbsp;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"><span class="strong">Rational.</span><code><strong><a href="../../../../edu/rit/numeric/Rational.html#min(int, edu.rit.numeric.Rational)">min</a></strong>(int&nbsp;x,
<a href="../../../../edu/rit/numeric/Rational.html" title="class in edu.rit.numeric">Rational</a>&nbsp;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"><span class="strong">Rational.</span><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>&nbsp;x,
int&nbsp;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"><span class="strong">Rational.</span><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>&nbsp;x,
<a href="../../../../edu/rit/numeric/Rational.html" title="class in edu.rit.numeric">Rational</a>&nbsp;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"><span class="strong">Rational.</span><code><strong><a href="../../../../edu/rit/numeric/Rational.html#mul(int, edu.rit.numeric.Rational)">mul</a></strong>(int&nbsp;x,
<a href="../../../../edu/rit/numeric/Rational.html" title="class in edu.rit.numeric">Rational</a>&nbsp;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"><span class="strong">Rational.</span><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>&nbsp;x,
int&nbsp;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"><span class="strong">Rational.</span><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>&nbsp;x,
<a href="../../../../edu/rit/numeric/Rational.html" title="class in edu.rit.numeric">Rational</a>&nbsp;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>boolean</code></td>
<td class="colLast"><span class="strong">Rational.</span><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>&nbsp;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"><span class="strong">Rational.</span><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>&nbsp;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"><span class="strong">Rational.</span><code><strong><a href="../../../../edu/rit/numeric/Rational.html#sub(int, edu.rit.numeric.Rational)">sub</a></strong>(int&nbsp;x,
<a href="../../../../edu/rit/numeric/Rational.html" title="class in edu.rit.numeric">Rational</a>&nbsp;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"><span class="strong">Rational.</span><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>&nbsp;x,
int&nbsp;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"><span class="strong">Rational.</span><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>&nbsp;x,
<a href="../../../../edu/rit/numeric/Rational.html" title="class in edu.rit.numeric">Rational</a>&nbsp;y)</code>
<div class="block">Set this rational number to the difference of the given numbers.</div>
</td>
</tr>
</tbody>
</table>
<table border="0" cellpadding="3" cellspacing="0" summary="Use table, listing constructors, and an explanation">
<caption><span>Constructors in <a href="../../../../edu/rit/numeric/package-summary.html">edu.rit.numeric</a> with parameters of type <a href="../../../../edu/rit/numeric/Rational.html" title="class in edu.rit.numeric">Rational</a></span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colOne" scope="col">Constructor and Description</th>
</tr>
<tbody>
<tr class="altColor">
<td class="colLast"><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>&nbsp;value)</code>
<div class="block">Construct a new rational number.</div>
</td>
</tr>
</tbody>
</table>
</li>
</ul>
</li>
</ul>
</div>
<!-- ======= 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><a href="../../../../edu/rit/numeric/Rational.html" title="class in edu.rit.numeric">Class</a></li>
<li class="navBarCell1Rev">Use</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>Prev</li>
<li>Next</li>
</ul>
<ul class="navList">
<li><a href="../../../../index.html?edu/rit/numeric/class-use/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>
<a name="skip-navbar_bottom">
<!-- -->
</a></div>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
<p class="legalCopy"><small><FONT SIZE="-2">Copyright &copy; 2013&ndash;2016 by Alan Kaminsky. All rights reserved. Send comments to ark</FONT><FONT SIZE="1" COLOR="#FFFFFF">&shy;</FONT><FONT SIZE="-2">&#64;</FONT><FONT SIZE="1" COLOR="#FFFFFF">&shy;</FONT><FONT SIZE="-2">cs.rit.edu.</FONT></small></p>
</body>
</html>