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(
1
74)
→
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(
1
74)
→
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(
1
74)
→
c
util\write(50,
1
0,{"Equations:",c&" and "&c,"(x^2+y^3)/
√
(z)","
ℯ
^(x)",c,"a*x^2+b*x+c"})
7 - 57
Summary of Contents for TI-92+
Page 52: ...Component side of PCB GraphLink I O connector detail 1 41...
Page 53: ...LCD connector detail PCB switch side 1 42...
Page 54: ...Key pad sheet contact side Key pad sheet key side 1 43...
Page 55: ...Key cap detail 1 44...
Page 57: ...Component side of PCB with shield removed A detail view of the intergrated circuits 1 46...
Page 410: ...void extensionroutine2 void Credit to Bhuvanesh Bhatt 10 4...