Integral

Element

The graph of the integral function of a given function in a given interval.

The Integral element is used to visualize the area under a given curve over a given interval and to calculate the area's value. For that a polygon and gliders are used. The polygon displays the area, the gliders are used to change the interval dynamically.

Usage (signatures)
board.create('integral', [domain, f]);

The constructed element covers the area between the curve c and the x-axis within the interval i.

Parameters
Name Type Description
domain Array

Array of length 2 containing interval bounds for the integral

f Functiongraph

Function graph to be integrated.

Example

Integral area

var domain = board.create('functiongraph', [(t) => Math.cos(t) * t]);
var integral = board.create('integral', [[-2.0, 2.0], domain]);
Attributes

Own

baseLeft

Description

Attributes of the left base point of the integral.

Type
Object
Default Value
{
    visible: false,
    fixed: false,
    withLabel: false,
    name: ''
}
See
Source
options.js, line 6643

baseRight

Description

Attributes of the right base point of the integral.

Type
Object
Default Value
{
    visible: false,
    fixed: false,
    withLabel: false,
    name: ''
}
See
Source
options.js, line 6687

curveLeft

Description

Attributes of the (left) starting point of the integral.

Type
Object
Default Value
{
    visible: true,
    withLabel: false,
    color: Color.palette.red,
    fillOpacity: 0.8,
    layer: 9
}
See
Source
options.js, line 6620

curveRight

Description

Attributes of the (right) end point of the integral.

Type
Object
Default Value
{
    visible: true,
    withLabel: false,
    color: Color.palette.red,
    fillOpacity: 0.8,
    layer: 9
}
See
Source
options.js, line 6664

label

Description

Attributes for integral label.

Type
Label
Default Value
{
     fontSize: 20,
     digits: 4,
     intl: {
         enabled: false,
         options: {}
     }
 }
Source
options.js, line 6708

Inherited

Members

Own

(static) baseLeft : JXG.Point

Description

The point on the axis initially corresponding to the lower value of the interval.

Type
JXG.Point
Source
element/composition.js, line 2759

(static) baseRight : JXG.Point

Description

The point on the axis initially corresponding to the higher value of the interval.

Type
JXG.Point
Source
element/composition.js, line 2768

(static) curveLeft : Glider

Description

The glider on the curve corresponding to the lower value of the interval.

Type
Glider
Source
element/composition.js, line 2777

(static) curveRight : Glider

Description

The glider on the axis corresponding to the higher value of the interval.

Type
Glider
Source
element/composition.js, line 2786

Inherited

Methods

Own

(static) Value() → {Number}

Returns the current value of the integral.

Returns

Type
Number

Details

Source
element/composition.js, line 2663

Inherited

Events

Own

none

Inherited

Throws

If the element cannot be constructed with the given parent objects an exception is thrown.

Type
Error

Details

Type
JXG.Curve
Source
element/composition.js, line 2418

Extends