harmonic
calculate the harmonic function
Calling Sequence
Parameters
Description
Examples
harmonic(x)
harmonic(x, y)
x
-
expression
y
The harmonic function is defined in terms of the Psi and Zeta functions as follows.
FunctionAdvisor(definition, harmonic);
When the first parameter is a non-negative integer n, the harmonic function admits a Sum representation
FunctionAdvisor(sum_form, harmonic(n));
FunctionAdvisor(sum_form, harmonic(n,z));
When the first parameter is a negative integer an exception (error) is raised, signaling the event 'division_by_zero'. This behavior can be controlled using a NumericEventHandler, which will be passed complex infinity as the default value.
When the first parameter is a small non-negative integer and the second parameter, if present, is a non-negative integer, harmonic returns a rational number.
Special values for the harmonic function
See Also
complex infinity
error
FunctionAdvisor
inifcns
NumericEvent
NumericEventHandler
Psi
Zeta
Download Help Document