public class Sequence
extends java.lang.Object
Constructor and Description |
---|
Sequence() |
Modifier and Type | Method and Description |
---|---|
static DblMatrix |
altharmonic(int M)
Returns alternating harmonic sequence with nth term (-1)^(n+1)/n.
|
static DblMatrix |
fibonacci(DblMatrix n)
Returns the specified terms of the Fibonacci sequence.
|
static DblMatrix |
fibonacci(int n)
Returns the nth term of the Fibonacci sequence.
|
static DblMatrix |
fibonaccis(int n)
Returns the first n terms of the Fibonacci sequence.
|
static DblMatrix |
harmonic(int M)
Returns harmonic sequence with nth term 1/n.
|
static DblMatrix |
harmonic(int M,
double a,
double b)
Returns general harmonic sequence with nth term 1/(a*n+b).
|
static DblMatrix |
invfibonacci(DblMatrix x)
For given Fibonacci numbers returns their index n.
|
static DblMatrix |
invfibonacci(int x)
For a given Fibonacci number returns the index n.
|
static DblMatrix |
primes(int M)
Returns sequence of the first n prime numbers.
|
static DblMatrix |
pseq(int M,
double p)
Returns a p-sequence with the nth term 1/(n^p).
|
public static DblMatrix pseq(int M, double p)
public static DblMatrix altharmonic(int M)
public static DblMatrix harmonic(int M)
public static DblMatrix harmonic(int M, double a, double b)
public static DblMatrix primes(int M)
public static DblMatrix fibonaccis(int n)
public static DblMatrix fibonacci(int n)
public static DblMatrix fibonacci(DblMatrix n)
public static DblMatrix invfibonacci(int x)
Copyright © 2011, 2013. Daniel P. Dougherty