Appendix A: Functions and Instructions 881
‡()
(square root)
2]key
‡ (
expression1
) ⇒
expression
‡ (
list1
) ⇒
list
Returns the square root of the argument.
For a list, returns the square roots of all the
elements in
list1.
‡(4)
¸ 2
‡({9,a,4})
¸ {3 ‡a 2}
Π()
(product)
MATH/Calculus menu
Π(
expression1
,
var
,
low
,
high
) ⇒
expression
Evaluates
expression1
for each value of
var
from
low
to
high
, and returns the product of the results.
Π(1/n,n,1,5)
¸
1
120
Π(k^2,k,1,n)
¸ (n!)ñ
Π({1/n,n,2},n,1,5)
¸
{
1
120
120 32}
Π(
expression1
,
var
,
low
,
low
ì
1
) ⇒
1
Π(k,k,4,3)
¸ 1
Π(
expression1
,
var
,
low
,
high
) ⇒
1
/
Π(
expression1,
var, high
+1,
low
ì
1)
if
high
<
low
ì
1
Π(1/k,k,4,1)
¸ 6
Π(1/k,k,4,1)
ù Π(1/k,k,2,4)
¸
1/4
G()
(sum)
MATH/Calculus menu
G (
expression1
,
var
,
low
,
high
) ⇒
expression
Evaluates
expression1
for each value of
var
from
low
to
high
, and returns the sum of the results.
G(1/n,n,1,5)
¸
137
60
G(k^2,k,1,n)
¸
nø (n + 1)ø (2ø n + 1)
6
G(1/n^2,n,1,ˆ)
¸
pñ
6
G (
expression1
,
var
,
low
,
low
ì
1
) ⇒
0
G(k,k,4,3)
¸ 0
G (
expression1
,
var
,
low
,
high
) ⇒ ë G (
expression1,
var, high
+1,
low
ì
1) if
high
<
low
ì
1
G(k,k,4,1)
¸ ë 5
G(k,k,4,1)+G(k,k,2,4)
¸ 4
#
(indirection)
CATALOG
#
varNameString
Refers to the variable whose name is
varNameString
.
This lets you create and modify variables from a
program using strings.
Program segment:
©
:Request "Enter Your Name",str1
:NewFold #str1
©
©
:For i,1,5,1
: ClrGraph
: Graph iù x
: StoPic #("pic" & string(i))
:EndFor
©