Texas Instruments TI-89 Tip List page 346

Graphing calculator
Hide thumbs Also See for TI-89:
Table of Contents

Advertisement

Up to ten control characters may be used in a single format_string. This example shows a
format_string which contains both control characters and text:
char(174)→c
util\write(50,40,{c&" and "&c,"(x^2+y^3)/√(z)","ℯ^(x)"})
In this case format_string is built by concatenating the control characters with the text using the "&"
operator, with the expression c&" and "&c, which results in the string "® and ®". Since there are two
control characters, the list must include two expressions. In general, the number of expressions must
equal the number of control characters.
This syntax for write() can also be used to display pretty-print expressions on multiple lines. Each
format_string starts a new display line, as this example shows:
char(174)→c
util\write(50,20,{c&" and "&c,"(x^2+y^3)/√(z)","ℯ^(x)",c,"a*x^2+b*x+c"})
Note that the second format_string, which is just c, causes the third expression to be displayed on a
new line.
Finally, this syntax can also be used to display text on some lines, and expressions on others. This
example shows the text "Equations:" on the line before the expressions:
char(174)→c
util\write(50,10,{"Equations:",c&" and "&c,"(x^2+y^3)/√(z)","ℯ^(x)",c,"a*x^2+b*x+c"})
7 - 57

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Ti-92+

Table of Contents