You are here: TI‑Nspire™ CX CAS Reference Guide > Alphabetical Listing > D

D

dbd()

dbd(date1,date2) value

Returns the number of days between date1 and date2 using the actual-day-count method.

date1 and date2 can be numbers or lists of numbers within the range of the dates on the standard calendar. If both date1 and date2 are lists, they must be the same length.

date1 and date2 must be between the years 1950 through 2049.

You can enter the dates in either of two formats. The decimal placement differentiates between the date formats.

MM.DDYY (format used commonly in the United States)
DDMM.YY (format use commonly in Europe)

DD

Expr1 DD valueList1
DD listMatrix1
DD matrix

Note: You can insert this operator from the computer keyboard by typing @>DD.

Returns the decimal equivalent of the argument expressed in degrees. The argument is a number, list, or matrix that is interpreted by the Angle mode setting in gradians, radians or degrees.

In Degree angle mode:


In Gradian angle mode:


In Radian angle mode:

Decimal

Expression1 Decimal expression

List1 Decimal expression

Matrix1 Decimal expression

Note: You can insert this operator from the computer keyboard by typing @>Decimal.

Displays the argument in decimal form. This operator can be used only at the end of the entry line.

Define

Define Var = Expression
Define Function(Param1, Param2, ...) = Expression

Defines the variable Var or the user-defined function Function.

Parameters, such as Param1, provide placeholders for passing arguments to the function. When calling a user-defined function, you must supply arguments (for example, values or variables) that correspond to the parameters. When called, the function evaluates Expression using the supplied arguments.

Var and Function cannot be the name of a system variable or built-in function or command.

Note: This form of Define is equivalent to executing the expression: expression Function(Param1,Param2).

 

Define Function(Param1, Param2, ...) = Func
     Block
EndFunc

 

Define Program(Param1, Param2, ...) = Prgm
     Block
EndPrgm

In this form, the user-defined function or program can execute a block of multiple statements.

Block can be either a single statement or a series of statements on separate lines. Block also can include expressions and instructions (such as If, Then, Else, and For).

Note for entering the example: For instructions on entering multi-line program and function definitions, refer to the Calculator section of your product guidebook.

Note: See also Define LibPriv, here, and Define LibPub, here.

 

Define LibPriv

Define LibPriv Var = Expression
Define LibPriv Function(Param1, Param2, ...) = Expression

Define LibPriv Function(Param1, Param2, ...) = Func
     Block
EndFunc

Define LibPriv Program(Param1, Param2, ...) = Prgm
     Block
EndPrgm

Operates the same as Define, except defines a private library variable, function, or program. Private functions and programs do not appear in the Catalog.

Note: See also Define, here, and Define LibPub, here.

 

Define LibPub

Define LibPub Var = Expression
Define LibPub Function(Param1, Param2, ...) = Expression

Define LibPub Function(Param1, Param2, ...) = Func
     Block
EndFunc

Define LibPub Program(Param1, Param2, ...) = Prgm
     Block
EndPrgm

Operates the same as Define, except defines a public library variable, function, or program. Public functions and programs appear in the Catalog after the library has been saved and refreshed.

Note: See also Define, here, and Define LibPriv, here.

 

deltaList()

 

 

deltaTmpCnv()

 

 

DelVar

DelVar Var1[, Var2] [, Var3] ...

DelVar Var.

Deletes the specified variable or variable group from memory.

If one or more of the variables are locked, this command displays an error message and deletes only the unlocked variables. See unLock, here.

DelVar Var. deletes all members of the Var. variable group (such as the statistics stat.nn results or variables created using the LibShortcut() function). The dot (.) in this form of the DelVar command limits it to deleting a variable group; the simple variable Var is not affected.

delVoid()

delVoid(List1) list

Returns a list that has the contents of List1 with all empty (void) elements removed.

For more information on empty elements, see here.

derivative()

 

 

deSolve()

deSolve(1stOr2ndOrderODE, Var, depVar) a general solution

Returns an equation that explicitly or implicitly specifies a general solution to the 1st- or 2nd-order ordinary differential equation (ODE). In the ODE:

Use a prime symbol (press º) to denote the 1st derivative of the dependent variable with respect to the independent variable.
Use two prime symbols to denote the corresponding second derivative.

The prime symbol is used for derivatives within deSolve() only. In other cases, use d().

The general solution of a 1st-order equation contains an arbitrary constant of the form ck, where k is an integer suffix from 1 through 255. The solution of a 2nd-order equation contains two such constants.

Apply solve() to an implicit solution if you want to try to convert it to one or more equivalent explicit solutions.

When comparing your results with textbook or manual solutions, be aware that different methods introduce arbitrary constants at different points in the calculation, which may produce different general solutions.

deSolve(1stOrderODE and initCond, Var, depVar)  a particular solution

Returns a particular solution that satisfies 1stOrderODE and initCond. This is usually easier than determining a general solution, substituting initial values, solving for the arbitrary constant, and then substituting that value into the general solution.

initCond is an equation of the form:

depVar (initialIndependentValue) = initialDependentValue

The initialIndependentValue and initialDependentValue can be variables such as x0 and y0 that have no stored values. Implicit differentiation can help verify implicit solutions.

deSolve(2ndOrderODE and initCond1 and initCond2, Var, depVar)  particular solution

Returns a particular solution that satisfies 2nd Order ODE and has a specified value of the dependent variable and its first derivative at one point.

For initCond1, use the form:

depVar (initialIndependentValue) = initialDependentValue

For initCond2, use the form:

depVar (initialIndependentValue) = initial1stDerivativeValue

deSolve(2ndOrderODE and bndCond1 and bndCond2, Var, depVar)  a particular solution

Returns a particular solution that satisfies 2ndOrderODE and has specified values at two different points.

 

 

det()

det(squareMatrix[, Tolerance]) expression

Returns the determinant of squareMatrix.

Optionally, any matrix element is treated as zero if its absolute value is less than Tolerance. This tolerance is used only if the matrix has floating-point entries and does not contain any symbolic variables that have not been assigned a value. Otherwise, Tolerance is ignored.

If you use /· or set the Auto or Approximate mode to Approximate, computations are done using floating-point arithmetic.
If Tolerance is omitted or not used, the default tolerance is calculated as:
5E14 max(dim(squareMatrix))rowNorm(squareMatrix)

diag()

diag(List) matrix
diag(rowMatrix) matrix
diag(columnMatrix) matrix

Returns a matrix with the values in the argument list or matrix in its main diagonal.

diag(squareMatrix) rowMatrix

Returns a row matrix containing the elements from the main diagonal of squareMatrix.

squareMatrix must be square.

dim()

dim(List) integer

Returns the dimension of List.

dim(Matrix) list

Returns the dimensions of matrix as a two-element list {rows, columns}.

dim(String) integer

Returns the number of characters contained in character string String.

Disp 

Disp exprOrString1 [, exprOrString2] ...

Displays the arguments in the Calculator history. The arguments are displayed in succession, with thin spaces as separators.

Useful mainly in programs and functions to ensure the display of intermediate calculations.

Note for entering the example: For instructions on entering multi-line program and function definitions, refer to the Calculator section of your product guidebook.

DispAt

DispAt int,expr1 [,expr2 ...] ...

DispAt allows you to specify the line where the specified expression or string will be displayed on the screen.

The line number can be specified as an expression.

Please note that the line number is not for the entire screen but for the area immediately following the command/program.

This command allows dashboard-like output from programs where the value of an expression or from a sensor reading is updated on the same line.

DispAtand Disp can be used within the same program.

Note: The maximum number is set to 8 since that matches a screen-full of lines on the handheld screen - as long as the lines don't have 2D math expressions. The exact number of lines depends on the content of the displayed information.


Example

 

 

Illustrative examples:

Define z()=

Prgm

For n,1,3

DispAt 1,"N: ",n

Disp "Hello"

EndFor

EndPrgm

Output

z()

Iteration 1:

Line 1: N:1

Line 2: Hello

 

Iteration 2:

Line 1: N:2

Line 2: Hello

Line 3: Hello

 

Iteration 3:

Line 1: N:3

Line 2: Hello

Line 3: Hello

Line 4: Hello

Define z1()=

Prgm

For n,1,3

DispAt 1,"N: ",n

EndFor

 

For n,1,4

Disp "Hello"

EndFor

EndPrgm

z1()

Line 1: N:3

Line 2: Hello

Line 3: Hello

Line 4: Hello

Line 5: Hello

 

Error conditions:

Error Message

Description

DispAt line number must be between 1 and 8

Expression evaluates the line number outside the range 1-8 (inclusive)

Too few arguments

The function or command is missing one or more arguments.

No arguments

Same as current 'syntax error' dialog

Too many arguments

Limit argument. Same error as Disp.

Invalid data type

First argument must be a number.

Void: DispAt void

"Hello World" Datatype error is thrown for the void (if the callback is defined)

Conversion operator: DispAt 2_ft @> _m, "Hello World"

CAS: Datatype Error is thrown (if the callback is defined)

Numeric: Conversion will be evaluated and if the result is a valid argument, DispAt print the string at the result line.

DMS

Expr DMS 

List DMS

Matrix DMS


Note: You can insert this operator from the computer keyboard by typing @>DMS.

Interprets the argument as an angle and displays the equivalent DMS (DDDDDD°MM'SS.ss'') number. See °, ', '' on here for DMS (degree, minutes, seconds) format.

Note: DMS will convert from radians to degrees when used in radian mode. If the input is followed by a degree symbol ° , no conversion will occur. You can use DMS only at the end of an entry line.

In Degree angle mode:

 

domain()

domain(Expr1, Var) expression

Returns the domain of Expr1 with respect to Var.

domain() can be used to examine domains of functions. It is restricted to real and finite domain.

This functionality has limitations due to shortcomings of computer algebra simplification and solver algorithms.

Certain functions cannot be used as arguments for domain(), regardless of whether they appear explicitly or within user-defined variables and functions. In the following example, the expression cannot be simplified because () is a disallowed function.

 

dominantTerm()

dominantTerm(Expr1, Var [, Point]) expression

dominantTerm(Expr1, Var [, Point]) | Var>Point expression

dominantTerm(Expr1, Var [, Point]) | Var<Point expression

Returns the dominant term of a power series representation of Expr1 expanded about Point. The dominant term is the one whose magnitude grows most rapidly near Var = Point. The resulting power of (Var Point) can have a negative and/or fractional exponent. The coefficient of this power can include logarithms of (Var Point) and other functions of Var that are dominated by all powers of (Var Point) having the same exponent sign.

Point defaults to 0. Point can be or , in which cases the dominant term will be the term having the largest exponent of Var rather than the smallest exponent of Var.

dominantTerm(…) returns “dominantTerm(…)” if it is unable to determine such a representation, such as for essential singularities such as sin(1/z) at z=0, e1/z at z=0, or ez at z = or .

If the series or one of its derivatives has a jump discontinuity at Point, the result is likely to contain sub-expressions of the form sign(…) or abs(…) for a real expansion variable or (-1)floor(…angle(…)…) for a complex expansion variable, which is one ending with “_”. If you intend to use the dominant term only for values on one side of Point, then append to dominantTerm(...) the appropriate one of “| Var > Point”, “| Var < Point”, “| “Var Point”, or “Var Point” to obtain a simpler result.

dominantTerm() distributes over 1st-argument lists and matrices.

dominantTerm() is useful when you want to know the simplest possible expression that is asymptotic to another expression as VarPoint. dominantTerm() is also useful when it isn’t obvious what the degree of the first non-zero term of a series will be, and you don’t want to iteratively guess either interactively or by a program loop.

Note: See also series(), here.

dotP()

dotP(List1, List2) expression

Returns the “dot” product of two lists.

dotP(Vector1, Vector2) expression

Returns the “dot” product of two vectors.

Both must be row vectors, or both must be column vectors.

 

See Also: TI-Nspire™ CX II - Draw Commands