Usage (signatures)
board.create('inequality', [l]);
The area shown is the area below this line or function graph. With the attribute
inverse:true, the inequality 'greater than or equal to' is shown.
Parameters
| Name | Type | Description |
|---|---|---|
l |
Line | Functiongraph |
Examples
Inequality: semi-plane
var p = board.create('point', [1, 3]),
q = board.create('point', [-2, -4]),
l = board.create('line', [p, q]),
ineq = board.create('inequality', [l]);
Inequality: y >= 2/3 x + 1
// Plot the inequality
// y >= 2/3 x + 1
// or
// 0 >= -3y + 2x +1
var l = board.create('line', [1, 2, -3]),
ineq = board.create('inequality', [l], {inverse:true});
Inequality (x,y) such that with y >= sin(x)
var f = board.create('functiongraph', ['sin(x)', -2*Math.PI, 2*Math.PI]);
var ineq_lower = board.create('inequality', [f]);
var ineq_greater = board.create('inequality', [f], {inverse: true, fillColor: 'yellow'});
Attributes
Own
inverse
- Description
By default an inequality is less (or equal) than. Set inverse to
truewill consider the inequality greater (or equal) than.- Type
- Boolean
- Default Value
- false
- Source
- options.js, line 6422
Inherited
Members
Own
none
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 2813