Texas Instruments TI89 Developer Guide - Page 512
ABS Float if approx!= 0.0. Otherwise, returns FLOAT_MAX.
![]() |
UPC - 033317198566
View all Texas Instruments TI89 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 512 highlights
470 Appendix A: System Routines - EStack Arithmetic get_lb Declaration: float get_lb (EStackIndex var) Category(ies): EStack Arithmetic Description: If global NG_such_that_index includes var >= expression, and approx (expression) -> float, returns that float. Otherwise if global NG_such_that_index includes var > expression, and approx (expression) -> float, returns that float N epsilon, where epsilon = 1E-38 if approx (x) == 0.0 or 8 † FLOAT_EPSILON † ABS (Float) if approx (x) != 0.0. Otherwise returns FLOAT_MAX. Inputs: var - Index of a variable. Outputs: None Assumptions: None Side Effects: None Availability: On AMS 2.02 and higher. TI-89 / TI-92 Plus Differences: None See Also: get_ub Example: Int var_gt_eq_other_const (EStackIndex ki, EStackIndex j) /* ki indexes a kernel and j indexes a number. Using NG_such_that_index: returns 1 if deduces the variable indexed by ki > the number indeded by j, returns 0 if deduces the variable indexed by ki = the number indeded by j, returns -1 otherwise. */ { Access_AMS_Global_Variables; Float fki = get_lb (ki); if (fki < FLOAT_MAX) { ki = top_estack; push_approx (j); j = top_estack; if (FLOAT_TAG == ESTACK (j)) { Float fj = ESTACK_TO_FLOAT (j); top_estack = ki; return fki < fj ? -1 : fki > fj; } } return -1; } TI-89 / TI-92 Plus Developer Guide Not for Distribution Beta Version January 26, 2001
![](/manual_guide/products/texas-instruments-ti89-developer-guide-95b636f/512.png)