Class Index | File Index

Classes


Class Functiongraph


Extends JXG.Curve.
This element is used to provide a constructor for functiongraph, which is just a wrapper for element Curve with JXG.Curve#X() set to x. The graph is drawn for x in the interval [a,b].
Defined in: Curve.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
Functiongraph(f,a_,b_)
Fields borrowed from class JXG.Curve:
curveType, doAdvancedPlot, numberPoints, numberPointsHigh, numberPointsLow
Fields borrowed from class JXG.GeometryElement:
ancestors, board, childElements, dash, descendants, draft, fillColor, fillOpacity, fixed, hasLabel, highlightFillColor, highlightFillOpacity, highlightStrokeColor, highlightStrokeOpacity, highlightStrokeWidth, id, isReal, layer, name, needsRegularUpdate, needsUpdate, notExistingParents, numTraces, quadraticform, shadow, stdform, strokeColor, strokeOpacity, strokeWidth, symbolic, trace, traces, transformations, visible, visProp
Methods borrowed from class JXG.Curve:
allocatePoints, cloneToBackground, generateTerm, getLabelAnchor, hasPoint, maxX, minX, notifyParents, update, updateCurve, updateDataArray, updateRenderer, X, Y
Methods borrowed from class JXG.GeometryElement:
addChild, addLabelToElement, animate, clearTrace, hideElement, highlight, labelColor, noHighlight, remove, setArrow, setProperty, showElement
Class Detail
Functiongraph(f,a_,b_)
// Create a function graph for f(x) = 0.5*x*x-2*x
  var graph = board.create('functiongraph', 
                       [function(x){ return 0.5*x*x-2*x;}, -2, 4]
                    );

				
				
// Create a function graph for f(x) = 0.5*x*x-2*x with variable interval
  var s = board.create('slider',[[0,4],[3,4],[-2,4,5]]);
  var graph = board.create('functiongraph', 
                       [function(x){ return 0.5*x*x-2*x;}, 
                        -2, 
                        function(){return s.Value();}]
                    );

				
				
				
				
					
						
Parameters:
{function_number|function_number|function} f,a_,b_
Parent elements are a function term f(x) describing the function graph.

Further, an optional number or function for the left interval border a, and an optional number or function for the right interval border b.

Default values are a=-10 and b=10.

See:
JXG.Curve

Documentation generated by JsDoc Toolkit 2.4.0 on Tue Oct 25 2011 00:43:17 GMT-0000 (UTC)