BernsteinApprox - Returns a Bernstein Uniform Approximating Polynomial
Calling Sequence:
BernsteinApprox(f,N,a..b,x)
Parameters:
f - a name (of the function to be approximated)
N - a positive integer (the degree of the approximating polynomial)
a..b - a range
x - an expression (eg. the variable of the approximating polynomial)
Description:
Suppose that f is the name of a function that has been defined.
The call BernsteinApprox(f,N,a..b,x) returns a degree N polynomial
in the variable x that approximates f on the real interval [a,b].
fourier_series - Returns a Fourier Polynomial
Calling Sequence:
fourier_series(f,N,a..b,x)
fourier_series(f,N,x)
Parameters:
f - a name (of the function to be approximated)
N - a nonnegative integer
a..b - a range
x - an expression (eg. the variable of the approximating trigonometric
polynomial)
Description:
Suppose that f is the name of a function that has been defined.
The call fourier_series(f,N,a..b,x) returns the Fourier polynomial
a[0]/2+sum(a[k]*cos(2*Pi/L*k*x)+b[k]*sin(2*Pi/L*k*x),k=1..N) where
a[k]=2/L*int(f(t)*cos(2*Pi/L*k*t),t=a..b),
b[k]=2/L*int(f(t)*sin(2*Pi/L*k*t),t=a..b),
and L = b-a.
The three argument call fourier_series(f,N,x) is equivalent to
fourier_series(f,N,-Pi..Pi,x).
The extent to which the expressions in the return are computed is
commensurate with the specificity of the parameters that are passed
to fourier_series.
interpolate - Returns an Interpolating Polynomial
Calling Sequence:
interpolate(f,abscissae,x)
Parameters:
f - a name (of the function that is to be interpolated)
abscissae - a list of distinct real numbers
expr - an algebraic expression
Description:
Suppose that f is the name of a function that has been defined.
Suppose that abscissae := [xi[1],xi[2],...,xi[N+1]].
The call interpolate(f,abscissae,x) returns the degree N polynomial
in the variable x that interpolates the points
[xi[1],f([xi[1])], [xi[2],f([xi[2])], ... , [xi[N+1],f([xi[N+1])]
TaylorPoly - Returns a Taylor Polynomial
Calling Sequence:
TaylorPoly(f,c,N,x)
Parameters:
f - a name (of a function)
c - a real number (the center of the Taylor approximation)
N - a positive integer
x - an algebraic expression
Description:
Suppose that f is the name of a function that has been defined, that
c is a real number, and that N is a nonnegative integer.
Then TaylorPoly(f,c,N,x) returns a Taylor polynomial of the
function named f, centered at the real number c, of degree N (in
general).
TaylorPoly_seq - Returns a Sequence of Taylor Polynomials
Calling Sequence:
TaylorPoly_seq(f,c,N,x)
Parameters:
f - a name (of a function)
c - a real number (the center of the Taylor approximation)
N - a positive integer, a range of positive integers, or a list of
positive integers
x - an algebraic expression
Description:
Suppose that f is the name of a function that has been defined.
If L := [n[1],n[2],...,n[k]] is a list of positive integers, then
TaylorPoly_seq(f,c,L,x) returns a sequence of Taylor polynomials of
the function named f, centered at the real number c, of degrees
n[1], n[2], ... , n[k]. If the third argument is a positive integer N,
then the call TaylorPoly_seq(f,c,N,x) is equivalent to
TaylorPoly_seq(f,c,[1,2,3,...,N],x). If the third argument is a range
of positive integers a..b, then the call TaylorPoly_seq(f,c,a..b,x) is
equivalent to TaylorPoly_seq(f,c,[a,a+1,a+2,...,b],x).



RecurseReductionFormula - Recurses an Inactive Reduction Formula
Calling Sequence:
RecurseReductionFormula(rf,n,k)
Parameters:
rf - a reduction formula
n - the parameter that is reduced
k - a nonnegative integer
Description:
If rf is an equation of the form Int(f(x,n),x) = ... Int(f(x,n-s),x) ...
where s is a nonnegative integer, then RecurseReductionFormula(rf,n,k)
returns equation eqn. The left side of eqn is Int(f(x,k),x). The right
side of eqn is obtained by successively applying the left side of rf
until int(f(x,r) is attained with 0 <= r < s . This function should
only be used with integrals Int(f(x,n),x) that Maple cannot evaluate.
recurseReductionFormula - Recurses an Active Reduction Formula
Calling Sequence:
recurseReductionFormula(rf,n,k)
Parameters:
rf - a reduction formula
n - the parameter that is reduced
k - a nonnegative integer
Description:
If rf is an equation of the form int(f(x,n),x) = ... int(f(x,n-s),x) ...
where s is a nonnegative integer, then recurseReductionFormula(rf,n,k)
returns equation eqn. The left side of eqn is int(f(x,n),x). The right
side of eqn is obtained by successively applying the left side of rf
k times to evaluate int(f(x,n-j*s) (j=1..k). Thus,
recurseReductionFormula(rf,n,0) returns rf and recurseReductionFormula(rf,n,k)
returns int(f(x,n),x) = ... int(f(x,n-(k+1)*s),x) ...


calendar - Returns the Calendar for a Specified Month
Calling Sequence:
calendar(m,y)
Parameters:
m - an integer between 1 and 12 (representing the months, in order,
with January = 1)
y - a positive integer greater than 1592(the year)
Description:
With m and y as described, calendar(m,y) returns the calendar for the
specified month.
whichday - Returns a Week Day Name
Calling Sequence:
whichday(m,d,y)
Parameters:
m - an integer between 1 and 12 (representing the months, in order,
with January = 1)
d - an integer between 1 and 28, or 1 and 29, or 1 and 30, or 1 and 31
y - a positive integer greater than 1592(the year)
Description:
If (m,d,y) represents a valid calendar date, then whichday(m,d,y) returns
the name of the day on which that date fell (or will fall).

double_sum - Returns a Double sum
Calling Sequence:
double_sum(expr,i=a..b,j=c..d)
Parameters:
expr - an expression
j - a name (of the index of the inner sum)
k - a name (of the index of the outer sum)
a..b - a range (of the inner sum)
c..d - a range (of the outer sum)
Description:
The call double_sum(f(j,k),j=a..b,k=c..d) returns
d / b \
----- |----- |
\ | \ |
) | ) f(j, k)|
/ | / |
----- |----- |
k = c \j = a /
As a precaution, the limits c and d of the outer sum may
not depend on the index variable j of the inner sum.
Note: The letter i stands for the square root of -1 in Scientific
WorkPlace and cannot be used as an index of summation!
pointplot_seq - Returns a Sequence of Points for Plotting
Calling Sequence:
pointplot_seq(f,a,b,s)
Parameters:
f - a name (of a function)
a - a real number (left or right endpoint)
b - a real number (right or left endpoint)
s - a step size (optional)
Description:
If f is the name of a function that has been defined and if a and b
are real numbers, then pointplot_seq(f,a,b,s) returns the sequence
[a,f(a)],[a+s,f(a+s)],[a+2*s,f(a+2*s)],...,[a+n*s,f(a+n*s)]
The sequence stops when a+(n+1)*s assumes a value outside the range a..b.
If the fourth argument s is omitted, then the step size defaults to 1.
If the fourth argument s is specified but does not have the same sign as
b-a, then -s is used as the step size.
Note: When pointplot_seq(f,a,b,s) is defined as a Maple name (as discussed
in Step 2 of the section titled "Using m-Files"), all four arguments should be
included. It is only when pointplot_seq(f,a,b,s) is called from Scientific
WorkPlace that the fourth argument is optional.
split_list - Splits a list of Ordered Pairs into Lists of Abscissae and Ordinates
Calling Sequence:
split_list(L)
Parameters:
L - a list of ordered pairs
Description:
If L = [[x1,y1],[x2,y2],[x3,y3],...,[xN,yN]], then the call
split_list(L) returns the sequence [x1,x2,x3,...,xN],[y1,y2,y3,...,yN] .
,t).jpg)
=int(tsin(t^3),t).jpg)
.jpg)




EulerPartitions - Returns the number of partitions of an integer
Calling Sequence:
EulerPartitions(n)
Parameters:
n - an integer
Description:
If n is an integer then EulerPartitions(n) is the number of ways n can be written
as a sum of one or more positive integers (without regard to order of summands).
For example, EulerPartitions(5) = 7 because 5 = 5, 5 = 4+1, 5 = 3+2, 5 = 3+1+1,
5 = 2+2+1, 5 = 2+1+1+1, 5 = 1+1+1+1+1.
farey - Returns a particular Farey fraction
Calling Sequence:
farey(k,n)
Parameters:
n - an integer greater than 1
k - a positive integer less than or equal to number_farey(n)
Description:
If n is an integer greater than 1 and if k is a positive integer that is not greater
than number_farey(n), then farey(k,n) returns the k'th term of farey_seq(n).
farey_seq - Returns a Farey sequence
Calling Sequence:
farey_seq(n)
Parameters:
n - an integer greater than 1
Description:
If n is an integer greater than 1, then farey_seq(n) returns the list of Farey numbers
in increasing order. These are the rational numbers strictly between 0 and 1
that can be expressed with a positive integer denominator less than or equal to n.
FranelLandauD - Measures the uniformity with which a Farey sequence partitions
the unit interval
Calling Sequence:
FranelLandauD(x)
Parameters:
x - a real number greater than 2
Description:
If x is a real number greater than 1, then FranelLandauD(x) returns
sum(abs(farey(k,n)-k/(N+1)), k = 1..N)
where n = floor(x) and N = number_farey(n). Notice that the N numbers
1/(N+1), 2/(N+1), ..., N/(N+1) partition the unit interval (0,1) into
N+1 equal pieces. The N numbers farey(1,n), farey(2,n), ... , farey(n,n)
also partitions (0,1) into N subintervals, but the lengths of the subintervals
in the Farey dissection are generally unequal. FranelLandauD(x) measures the
deviation of farey_seq(floor(x)) from a uniform partition.
inv_mobius_transform_for_swp - Returns the inverse Mobius transformation of a function
Calling Sequence:
inv_mobius_transform(F,n)
Parameters:
F - the name of a function
n - a positive integer
Description:
If F is a function name and if n is a positive integer, then inv_mobius_transform(F,n)
returns the sum of F(d)*mobius(n/d) over the positive integer divisors d of n.
Liouville - Returns 1 or -1 depending on the number of prime power divisors of an integer
Calling Sequence:
Liouville(n)
Parameters:
n - an integer
Description:
If n is an integer, then Liouville(n) returns -1 if the total number of prime power
divisors of n is odd and 1 otherwise. For example, Liouville(72) = -1 since
72 = (2^3)*(3^2) has the five prime power divisors 2, 2^2, 2^3, 3, and 3^2.
Mangoldt - Returns ln(p) or 0 depending on whether its argument is a power of a prime p
or not.
Calling Sequence:
Mangoldt(n)
Parameters:
n - a positive integer
Description:
If n is a positive integer, then Mangoldt(n) returns ln(p) if n is a power of a prime p and
0 if n has more than one prime divisor.
MertensM - Returns the sum of the mobius function
Calling Sequence:
MertensM(x)
Parameters:
x - a real number greater than or equal to 1
Description:
If x is a real number greater than or equal to 1, then MertensM(x) returns
sum(mobius(k), k=1..floor(x)). Among square-free positive integers between
1 and floor(x), MertensM(x) tallies the number that are a product of an
even number of primes, the number that are a product of an
odd number of primes, and returns the (signed) difference.
number_farey - Returns the number of terms in a Farey sequence
Calling Sequence:
number_farey(n)
Parameters:
n - an integer greater than 1
Description:
If n is an integer greater than 1, then number_farey(n) returns the number of
terms in th list farey_seq(n) of Farey numbers.
pcf - Returns the number of primes less than or equal to a number
Calling Sequence:
pcf(x)
Parameters:
x - a positive number
Description:
If x is a positive number, then pcf(x) is the number of prime integers
that are less than or equal to x. The Prime Number Theorem states
that the prime counting function pcf(x) is asymptotic to x/ln(x).
prime_info - Returns information pertaining to prime numbers
Calling Sequence:
prime_info(n1, n2)
Parameters:
n1 - a positive integer. If n2 = 5, then n1 may also be [m] where m belongs to
{1,2,3,...,35,36}.
n2 - 1, 2, 3, 4, or 5
Description:
If n2=1, then prime_info(n1, n2) returns true if n1 is a prime and false otherwise.
If n2=2, then prime_info(n1, n2) returns the n1'th prime.
If n2=3, then prime_info returns the smallest prime that is greater than n1.
If n2=4, then prime_info returns the greatest prime that is smaller than n1.
If n2=5 and n1 is a positive integer, then prime_info(n1,n2) returns
2^n1-1 if this number is prime ( a so-called Mersenne prime), false if this number
is not prime (as always happens for composite n1 as well as for many prime n1), and
FAIL if Maple cannot determine whether the number is prime. If n2=5 and n1=[m],
then prime_info([m],n2) returns the m'th Mersenne prime.
Notice that prime_info is a wrapper for the five separate Maple routines: isprime,
ithprime, nextprime, prevprime, and mersenne.
prime_power_divisor_count - Returns the number of prime power divisors of an integer
Calling Sequence:
prime_power_divisor_count(n)
Parameters:
n - an integer
Description:
If n is an integer, then prime_power_divisor_count(n) returns the total number
of prime power divisors of n. For example, prime_power_divisor_count(72) = 5
since 72 = (2^3)*(3^2) has the five prime power divisors 2, 2^2, 2^3, 3, and 3^2.
RamanujanTau - The Ramanujan tau function
Calling Sequence:
RamanujanTau(n)
Parameters:
n - a positive integer
Description:
If n is a positive integer, then RamanujanTau(n) is the coefficient of x^n in the
Maclaurin series of x*product( (1-x^k)^24, k= 1.. n). If n has a prime power factor
that is greater than 31, then the calculation of RamanujanTau(n) is very
time-consuming.
sumoverdivisors - Sums an expression over positive integer divsors
Calling Sequence:
sumoverdivisors(expr,x,n)
Parameters:
expr - an algebraic expression
x - a name
n - a positive integer
Description:
If n is a positive integer, then sumoverdivisors(expr,x,n) calculates each
positive divisor d of n, evaluates expr for x = d, and then returns the
sum of these expressions.
twinprimes - Returns the number of twin prime pairs in an interval
Calling Sequence:
twinprimes(m..n)
Parameters:
m..n - a range of real numbers with n > m.
Description:
If m and n are real numbers with n > m, then twinprimes(m..n) is the
number of primes p in the interval [m,n] with p + 2 also prime (whether or
not p + 2 is in the interval [m,n]). For example, twinprimes(3..5) returns 2
because 3 and 5 is a pair of twin primes and 5 and 7 is a pair of twin primes,
and the first number of each pair is in the interval [3,5].
Brian E. Blank
Department of Mathematics
Washington University in St. Louis
1 Brookings Drive
St. Louis, MO 63130
Phone: (314) - 935 - 6763
Fax: (314) - 935 - 6839
e-mail: brian@math.wustl.edu
Local time of download (Courtesy of the U.S. Naval Observatory)