794
Appendix A: Functions and Instructions
expand(
expression1,var
)
returns
expression
expanded with respect to
var
. Similar powers of
var
are collected. The terms and their factors are sorted
with
var
as the main variable. There might be some
incidental factoring or expansion of the collected
coefficients. Compared to omitting
var
, this often
saves time, memory, and screen space, while
making the expression more comprehensible.
expand((x+y+1)^2,y)
¸
y
ñ
+
2
ø
y
ø
(x
+
1)
+
(x
+
1)
ñ
expand((x+y+1)^2,x)
¸
x
ñ
+
2
ø
x
ø
(y
+
1)
+
(y
+
1)
ñ
expand((x^2
ì
x+y^2
ì
y)/(x^2
ù
y^2
ì
x^2
ù
y
ì
x
ù
y^2+x
ù
y),y)
¸
expand(ans(1),x)
¸
Even when there is only one variable, using
var
might make the denominator factorization used for
partial fraction expansion more complete.
Hint:
For rational expressions,
propFrac()
is a
faster but less extreme alternative to
expand()
.
Note:
See also
comDenom()
for an expanded
numerator over an expanded denominator.
expand((x^3+x^2
ì
2)/(x^2
ì
2))
¸
2
ø
x
x
ñ ì
2
+
x+1
expand(ans(1),x)
¸
1
x
ì
‡
2
+
1
x+
‡
2
+
x+1
expand(
expression1,[var]
)
also distributes logarithms
and fractional powers regardless of
var
. For
increased distribution of logarithms and fractional
powers, inequality constraints might be necessary to
guarantee that some factors are nonnegative.
expand(
expression1, [var]
)
also distributes absolute
values,
sign()
, and exponentials, regardless of
var
.
Note:
See also
tExpand()
for trigonometric angle-
sum and multiple-angle expansion.
ln(2x
ù
y)+
‡
(2x
ù
y)
¸
ln(2
ø
x
ø
y)
+
‡
(2
ø
x
ø
y)
expand(ans(1))
¸
ln(x
ø
y)
+
‡
2
ø
‡
(
x
ø
y)
+
ln(2)
expand(ans(1))|y>=0
¸
ln(x)
+
‡
2
ø
‡
x
ø
‡
y
+
ln(y)
+
ln(2)
sign(x
ù
y)+abs(x
ù
y)+
e
^(2x+y)
¸
e
2
ø
x+y
+
sign(x
ø
y)
+
|x
ø
y|
expand(ans(1))
¸
sign(x)
ø
sign(y)
+
|x|
ø
|y|+
(
e
x
)
2
ø
e
y
expr()
MATH/String menu
expr(
string
)
⇒
expression
Returns the character string contained in
string
as
an expression and immediately executes it.
expr("1+2+x^2+x")
¸
x
ñ
+
x
+
3
expr("expand((1+x)^2)")
¸
x
ñ
+
2
ø
x
+
1
"Define cube(x)=x^3"
!
funcstr
¸
"Define cube(x)=x^3"
expr(funcstr)
¸
Done
cube(2)
¸
8
Содержание Titanium TI-89
Страница 9: ...Getting Started 6 TI 89 Titanium keys Ë Ì Í Ê ...
Страница 34: ...Getting Started 31 2 or D 2 B u s i n e s s D B D B Press Result ...
Страница 43: ...Getting Started 40 3 0 D B D D B D Press Result ...
Страница 44: ...Getting Started 41 D 2 0 0 2 D B Scroll down to October and press Press Result ...
Страница 58: ...Getting Started 55 Example Set split screen mode to TOP BOTTOM Press Result 3 B D ...
Страница 70: ...Getting Started 67 ...
Страница 175: ...Operating the Calculator 172 From the Keyboard ...
Страница 456: ...Tables 453 ...
Страница 503: ...Split Screens 500 Note Both Top Bottom and Left Right splits use the same methods to select an application ...
Страница 527: ...Data Matrix Editor 524 ...
Страница 704: ...Connectivity 701 A TI 89 Titanium and a Voyage 200 linked together I O Port I O Port I O unit to unit cable ...