EasyManua.ls Logo

HP 40gs - Page 193

HP 40gs
444 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
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)
Fk() 2
2
k
1+=
2
2
2
1+
2
2
2
1+
2
2
3
1+
DEFFK() 2
2
k
1+=()
2
2
k
1+
hp40g+.book Page 11 Friday, December 9, 2005 12:27 AM

Table of Contents

Related product manuals