| basfunc.h | Header File

Header File Index

Routines for executing TI-Basic functions

Very few of the functions from this header file are documented as of now. Of course, the ones which are undocumented have not been tested, either. It is very likely that there are errors in this file, so use it with care.
However, we thought it might be a good idea to provide a header file for all of the built-in TI-Basic functions which have a documented entry in the jump table. This way, you can easily search for particular symbolic math functions if you need them. If you use a function from this header file, please document it, too.
Many functions from this header file require their arguments to have some specific format. They usually have to be internally simplified, which can be achieved with the push_internal_simplify function from estack.h, and the result is an internally simplified expression as well. For optional arguments, you can usually pass NULL_INDEX.
If you do not want to accept the AMS dependency of these functions, you can usually construct an expression using their appropriate tags, and then call push_internal_simplify.

Functions

did_push_anti_deriv
  Executes TI-Basic 'ò' function.
did_push_series
  Executes TI-Basic 'taylor' function.
push_1st_derivative
  Executes TI-Basic '¶' function.
push_abs
  Executes TI-Basic 'abs' function.
push_acos
  Executes TI-Basic 'cos-1' function.
push_acosh
  Executes TI-Basic 'cosh-1' function.
push_approx
  Executes TI-Basic 'approx' function.
push_asin
  Executes TI-Basic 'sin-1' function.
push_asinh
  Executes TI-Basic 'sinh-1' function.
push_atan
  Executes TI-Basic 'tan-1' function.
push_atanh
  Executes TI-Basic 'tanh-1' function.
push_augment
  Executes TI-Basic 'augment' function.
push_ceiling
  Executes TI-Basic 'ceiling' function.
push_char
  Executes TI-Basic 'char' function.
push_coldim
  Executes TI-Basic 'colDim' function.
push_colnorm
  Executes TI-Basic 'colNorm' function.
push_comb
  Executes TI-Basic 'nCr' function.
push_comdenom
  Executes TI-Basic 'comDenom' function.
push_conj
  Executes TI-Basic 'conj' function.
push_cos
  Executes TI-Basic 'cos' function.
push_cosh
  Executes TI-Basic 'cosh' function.
push_cross_product
  Executes TI-Basic 'crossP' function.
push_csolve
  Executes TI-Basic 'cSolve' function.
push_cumsum
  Executes TI-Basic 'cumSum' function.
push_czeros
  Executes TI-Basic 'cZeros' function.
push_def_int
  Executes TI-Basic 'ò' function.
push_denominator
  Executes TI-Basic 'getDenom' function.
push_dense_poly_eval
  Executes TI-Basic 'polyEval(' function.
push_desolve
  Executes TI-Basic 'deSolve' function.
push_determinant
  Executes TI-Basic 'det' function.
push_diag
  Executes TI-Basic 'diag' function.
push_dimension
  Executes TI-Basic 'dim' function.
push_div_dif_1c
  Executes TI-Basic 'nDeriv(' function.
push_div_dif_1f
  Executes TI-Basic 'avgRC(' function.
push_dotproduct
  Executes TI-Basic 'dotP' function.
push_eigvc
  Executes TI-Basic 'eigVc' function.
push_eigvl
  Executes TI-Basic 'eigVl' function.
push_exp
  Executes TI-Basic 'e^' function.
push_expand
  Executes TI-Basic 'expand' function.
push_extended_prod
  Executes TI-Basic 'Õ' function.
push_factor
  Executes TI-Basic 'factor' function.
push_floor
  Executes TI-Basic 'floor' function.
push_fractional_part
  Executes TI-Basic 'fPart' function.
push_gcd_numbers
  Executes TI-Basic 'gcd' function.
push_getfold
  Executes TI-Basic 'getFold' function.
push_getkey
  Executes TI-Basic 'getKey' function.
push_getmode
  Executes TI-Basic 'getMode' function.
push_gettype
  Executes TI-Basic 'getType' function.
push_identity_mat
  Executes TI-Basic 'identity' function.
push_im
  Executes TI-Basic 'imag' function.
push_instring
  Executes TI-Basic 'inString' function.
push_integer_gcd
  Executes TI-Basic 'gcd' function.
push_integer_lcm
  Executes TI-Basic 'lcm' function.
push_integer_part
  Executes TI-Basic 'iPart' function.
push_integer_quotient
  Executes TI-Basic 'intDiv' function.
push_integer_remainder
  Executes TI-Basic 'remain' function.
push_is_prime
  Executes TI-Basic 'isPrime' function.
push_left
  Executes TI-Basic 'left' function.
push_lim
  Executes TI-Basic 'limit' function.
push_list_to_mat
  Executes TI-Basic 'list>mat' function.
push_ln
  Executes TI-Basic 'ln' function.
push_log10
  Executes TI-Basic 'log' function.
push_mat_to_list
  Executes TI-Basic 'mat>list' function.
push_matnorm
  Executes TI-Basic 'matNorm' function.
push_max1
  Executes TI-Basic 'max' function for a single matrix.
push_max2
  Executes TI-Basic 'max' function.
push_max
  Executes TI-Basic 'fMax' function.
push_mean
  Executes TI-Basic 'mean' function.
push_median
  Executes TI-Basic 'median' function.
push_mid
  Executes TI-Basic 'mid' function.
push_min1
  Executes TI-Basic 'min' function for a single matrix.
push_min2
  Executes TI-Basic 'min' function.
push_min
  Executes TI-Basic 'fMin' function.
push_mod
  Executes TI-Basic 'mod' function.
push_mrow
  Executes TI-Basic 'mRow' function.
push_mrowadd
  Executes TI-Basic 'mRowAdd' function.
push_newlist
  Executes TI-Basic 'newList' function.
push_newmat
  Executes TI-Basic 'newMat' function.
push_nint
  Executes TI-Basic 'nInt' function.
push_nsolve
  Executes TI-Basic 'nSolve' function.
push_nth_derivative
  Executes TI-Basic '¶' function.
push_numerator
  Executes TI-Basic 'getNum' function.
push_ord
  Executes TI-Basic 'ord' function.
push_part
  Executes TI-Basic 'part' function.
push_perm
  Executes TI-Basic 'nPr' function.
push_phase
  Executes TI-Basic 'R>Pq' function for a complex number (?).
push_prodlist
  Executes TI-Basic 'product' function.
push_pttest
  Executes TI-Basic 'ptTest' function.
push_pxltest
  Executes TI-Basic 'pxlTest' function.
push_r_cis
  Executes TI-Basic 'R>Pq' function (?).
push_rand
  Executes TI-Basic 'rand' function.
push_randmat
  Executes TI-Basic 'randMat' function.
push_randnorm
  Executes TI-Basic 'randNorm' function.
push_randpoly
  Executes TI-Basic 'randPoly' function.
push_re
  Executes TI-Basic 'real' function.
push_rec_to_angle
  Executes TI-Basic 'R>Pq' function.
push_red_row_ech
  Executes TI-Basic 'rref' function.
push_right
  Executes TI-Basic 'right' function.
push_rotate
  Executes TI-Basic 'rotate' function.
push_round
  Executes TI-Basic 'round' function.
push_row_echelon
  Executes TI-Basic 'ref' function.
push_rowadd
  Executes TI-Basic 'rowAdd' function.
push_rowdim
  Executes TI-Basic 'rowDim' function.
push_rownorm
  Executes TI-Basic 'rowNorm' function.
push_rowswap
  Executes TI-Basic 'rowSwap' function.
push_sequence
  Executes TI-Basic 'seq' function.
push_setfold
  Executes TI-Basic 'setFold' function.
push_setgraph
  Executes TI-Basic 'setGraph' function.
push_setmode
  Executes TI-Basic 'setMode' function.
push_settable
  Executes TI-Basic 'setTable' function.
push_shift
  Executes TI-Basic 'shift' function.
push_sign
  Executes TI-Basic 'sign' function.
push_simult
  Executes TI-Basic 'simult' function.
push_sin2
  Executes TI-Basic 'sin' and 'cos' functions.
push_sin
  Executes TI-Basic 'sin' function.
push_sinh
  Executes TI-Basic 'sinh' function.
push_solve
  Executes TI-Basic 'solve' function.
push_sqrt
  Executes TI-Basic 'Ö' function.
push_stddev
  Executes TI-Basic 'stdDev' function.
push_str_to_expr
  Executes TI-Basic 'expr' function.
push_string
  Executes TI-Basic 'string' function.
push_submat
  Executes TI-Basic 'subMat' function.
push_sumlist
  Executes TI-Basic 'sum' function.
push_summation
  Executes TI-Basic 'S' function.
push_switch
  Executes TI-Basic 'switch' function.
push_tan
  Executes TI-Basic 'tan' function.
push_tanh
  Executes TI-Basic 'tanh' function.
push_unitv
  Executes TI-Basic 'unitV' function.
push_variance
  Executes TI-Basic 'variance' function.
push_when
  Executes TI-Basic 'when' function.
push_zeros
  Executes TI-Basic 'zeros' function.

Constants

NULL_INDEX
  Describes an empty expression stack index.

Predefined Types

CESI
  Represents a pointer to a constant expression.
ESI
  Represents an index of a value on the TIOS expression stack.
ESQ
  Represents a quantum within an expression.
EStackIndex
  Represents an index of a value on the TIOS expression stack.
Quantum
  Represents a quantum within an expression.
SYM_STR
  Represents a pointer to the terminating zero byte of a string.

Note: All functions from this header file get parameters from the expression stack, so this header file must be used in conjunction with estack.h. You need to learn about the usage of the expression stack before using any function from this header file. All functions defined here execute particular TI-Basic functions. They sometimes may be useful to perform some operations which can not be implemented in C easily. But note that if you use functions from this header file too much, this will decrease the performance of your program significantly. In an extreme case, it will in fact decrease to that of a TI-Basic program! So use functions from this header file only if it is really necessary. Also note that these functions act exactly like the appropriate TI-Basic commands (including throwing errors if something is wrong), so the use of an error tracking mechanism from the error.h header file is highly recommended.

See also: bascmd.h, basop.h