calculator.setExpression({ type: 'table', columns: [ { latex: 'x', values: ['1', '2', '3', '4', '5'] }, { latex: 'y', values: ['1', '4', '9', '16', '25'], dragMode: Desmos.DragModes.XY }, { latex: 'x^2', color: Desmos.Colors.BLUE, columnMode: Desmos....
pasteTableData true Paste validly formatted table data to create a table up to 50 rows degreeMode false When true, trig functions assume arguments are in degrees. Otherwise, arguments are assumed to be in radians. colors Colors The color palette that the calculator will cycle through. See the...
Calculator.setExpression(expression_state) This will update or create a mathematical expression.expression_stateshould be an object which represents a single expression. Provided below is a table of supported options for theexpression_stateargument. ...
// Save the current state of a calculator instancevarnewDefaultState = calculator.getState();// Set a new default state to match the current statecalculator.setDefaultState(newDefaultState);// From this point forward the "Delete All" button will be replaced with a "Reset"// button that wil...
//Table with three columns. Note that the first two columns have explicitly //specified values, and the third column is computed from the first. calculator.setExpression({ type: 'table', columns: [ { latex: 'x', values: ['1', '2', '3', '4', '5'] }, { latex: 'y', values...
calculator.setExpression({ type: 'table', columns: [ { latex: 'x', values: ['1', '2', '3', '4', '5'] }, { latex: 'y', values: ['1', '4', '9', '16', '25'], dragMode: Desmos.DragModes.XY }, { latex: 'x^2', color: Desmos.Colors.BLUE, columnMode: Desmos....
type is set to something other than 'expression', 'text', or 'table'), this function will have no effect. Examples: //Define a variable m. Doesn't graph anything. calculator.setExpression({ id: 'm', latex: 'm=2' }); //Draw a red line with slope of m through the origin. //...
//Table with three columns. Note that the first two columns have explicitly //specified values, and the third column is computed from the first. calculator.setExpression({ type: 'table', columns: [ { latex: 'x', values: ['1', '2', '3', '4', '5'] }, { latex: 'y', values...
//Table with three columns. Note that the first two columns have explicitly //specified values, and the third column is computed from the first. calculator.setExpression({ type: 'table', columns: [ { latex: 'x', values: ['1', '2', '3', '4', '5'] }, { latex: 'y', values...
type is set to something other than 'expression', 'text', or 'table'), this function will have no effect. Examples: //Define a variable m. Doesn't graph anything. calculator.setExpression({ id: 'm', latex: 'm=2' }); //Draw a red line with slope of m through the origin. //...