org.jscience.mathematics.analysis.series
Class PrimeSeries

java.lang.Object
  extended by org.jscience.mathematics.analysis.series.PrimeSeries
All Implemented Interfaces:
AbstractSeries, PrimitiveSeries

public final class PrimeSeries
extends java.lang.Object
implements PrimitiveSeries

The prime numbers mathematical series.


Constructor Summary
PrimeSeries()
          Creates a new PrimeSeries object.
 
Method Summary
 java.util.Vector getPrimeFactors(long n)
          DOCUMENT ME!
static java.util.Vector getPrimes(int upTo)
          DOCUMENT ME!
 double getValue()
          DOCUMENT ME!
 double getValueAtRank(int n)
          DOCUMENT ME!
 boolean isConvergent()
          DOCUMENT ME!
 boolean isPrime(int n)
          DOCUMENT ME!
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PrimeSeries

public PrimeSeries()
Creates a new PrimeSeries object.

Method Detail

getValueAtRank

public double getValueAtRank(int n)
DOCUMENT ME!

Specified by:
getValueAtRank in interface PrimitiveSeries
Parameters:
n - DOCUMENT ME!
Returns:
DOCUMENT ME!

isPrime

public boolean isPrime(int n)
DOCUMENT ME!

Parameters:
n - DOCUMENT ME!
Returns:
DOCUMENT ME!

getPrimeFactors

public java.util.Vector getPrimeFactors(long n)
DOCUMENT ME!

Parameters:
n - DOCUMENT ME!
Returns:
DOCUMENT ME!

getPrimes

public static java.util.Vector getPrimes(int upTo)
DOCUMENT ME!

Parameters:
upTo - DOCUMENT ME!
Returns:
DOCUMENT ME!

isConvergent

public boolean isConvergent()
DOCUMENT ME!

Specified by:
isConvergent in interface AbstractSeries
Returns:
DOCUMENT ME!

getValue

public double getValue()
DOCUMENT ME!

Specified by:
getValue in interface PrimitiveSeries
Returns:
DOCUMENT ME!