TI-BASIC:Zdecimal

From Learn @ Cemetech
Jump to navigationJump to search

ZDECIMAL.GIF

Command Summary

Zooms to a Friendly_Window where all pixels have simple coordinates.

Command Syntax

ZDecimal

Menu Location

Press:

  1. ZOOM to access the zoom menu.
  2. 4 to select ZDecimal, or use arrows and ENTER.

Calculator Compatibility

TI-83/84/+/SE

Token Size

1 byte

The ZDecimal command makes the following changes to the window variables:

  • Xmin=-4.7
  • Xmax=4.7
  • Xscl=1
  • Ymin=-3.1
  • Ymax=3.1
  • Yscl=1

Because of the dimensions of the graph screen (95 by 63, when you remember that the last row and column aren't used), this has the useful effect that every pixel has round X- and Y-coordinates with at most one decimal digit. Also, the screen has correct proportions: a specific distance in the X direction is the same number of pixels in length as the same distance in the Y direction. This makes the window dimensions created by ZDecimal a Friendly_Window (the ZInteger and ZSquare commands also have this effect, but in slightly different ways)

Advanced Uses

Using the ZDecimal command prevents gaps in certain graphs, and makes sure vertical asymptotes with integer coordinates are graphed correctly. Also, circles will be drawn as actual circles with this graphing window(unlike other windows, with which they might appear stretched).

The values given for Xmin, Xmax, etc. above are only correct for the Full mode setting (which is the default, and the most common setting). In Horiz and G_T modes, the values will be different, preserving the property that two pixels next to each other differ in coordinates by 0.1:

  • Ymin= -1.5 and Ymax= 1.5 in Horiz mode (Xmin and Xmax are the same)
  • Ymin= -2.5 and Ymax= 2.5 in G-T mode, while Xmin= -2.3 and Xmax= 2.3

Error Conditions

  • ERR:INVALID occurs if this command is used outside a program.

Related Commands

See Also