harmonic - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Online Help

All Products    Maple    MapleSim


harmonic

calculate the harmonic function

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

harmonic(x)

harmonic(x, y)

Parameters

x

-

expression

y

-

expression

Description

• 

The harmonic function is defined in terms of the Psi and Zeta functions as follows.

FunctionAdvisor(definition, harmonic);

(1)
• 

When the first parameter is a non-negative integer n, the harmonic function admits a Sum representation

FunctionAdvisor(sum_form, harmonic(n));

(2)

FunctionAdvisor(sum_form, harmonic(n,z));

(3)
• 

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.

Examples

(4)

(5)

(6)

(7)

(8)

(9)

(10)

(11)

Special values for the harmonic function

(12)

See Also

complex infinity

error

FunctionAdvisor

inifcns

NumericEvent

NumericEventHandler

Psi

Zeta

 


Download Help Document