Computer Algebra System (CAS)
14-11
Typing:
DEF(U(N) = 2N+1)
produces the result:
U(N) = 2N+1
Typing:
U(3)
then returns:
7
Example
Calculate the first six Fermat numbers F1...F6 and
determine whether they are prime.
So, you want to calculate:
for
k
= 1...6
Typing the formula:
gives a result of 17. You can then invoke the
ISPRIME?()
command, which is found in the
MATH
key’s
Integer
menu. The response is 1, which means
TRUE. Using the history (which you access by pressing the
SYMB
key), you put the expression
into the
Equation Writer with
ECHO
, and change it to:
Or better, define a function F(K)
by selecting
DEF
from the
ALGB
menu on the menu bar and type:
The response is
and
F
is now listed amongst the
variables (which you can verify using the
VARS
key).
For
K=5
, you then type:
F(5)
F k
( )
2
2
k
1
+
=
2
2
2
1
+
2
2
2
1
+
2
2
3
1
+
DEF F K
( )
2
2
k
1
+
=
(
)
2
2
k
1
+
hp40g+.book Page 11 Friday, December 9, 2005 1:03 AM
Содержание 40gs
Страница 10: ...hp40g book Page x Friday December 9 2005 1 03 AM ...
Страница 64: ...hp40g book Page 22 Friday December 9 2005 1 03 AM ...
Страница 80: ...hp40g book Page 4 Friday December 9 2005 1 03 AM ...
Страница 86: ...hp40g book Page 4 Friday December 9 2005 1 03 AM ...
Страница 100: ...hp40g book Page 4 Friday December 9 2005 1 03 AM ...
Страница 126: ...hp40g book Page 22 Friday December 9 2005 1 03 AM ...
Страница 182: ...hp40g book Page 28 Friday December 9 2005 1 03 AM ...
Страница 274: ...hp40g book Page 22 Friday December 9 2005 1 03 AM ...
Страница 303: ...Step by Step Examples 16 29 hp40g book Page 29 Friday December 9 2005 1 03 AM ...
Страница 304: ...hp40g book Page 30 Friday December 9 2005 1 03 AM ...
Страница 314: ...hp40g book Page 10 Friday December 9 2005 1 03 AM ...
Страница 330: ...hp40g book Page 16 Friday December 9 2005 1 03 AM ...
Страница 392: ...hp40g book Page 44 Friday December 9 2005 1 03 AM ...
Страница 420: ...hp40g book Page 22 Friday December 9 2005 1 03 AM ...
Страница 428: ...hp40g book Page 8 Friday December 9 2005 1 03 AM ...
Страница 444: ...hp40g book Page 16 Friday December 9 2005 1 03 AM ...