EasyManua.ls Logo

HP HP-32S - Writing Programs for;FN; Examples Using;FN

HP HP-32S
312 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...
To
integrate
the
same
function
with
different
information:
Skip
the first two steps above. If using the same limitsof integration,press
|"rT|
fRTI
to bring them back into the
X-
and
Y-registers.
(If
not
using
the same limits, repeat step 3.) Then execute Bl
solve//
I
{/FN}
variable.
(To
work another problem using a
different
function, start
over with a different program for the function.)
Writing
Programs
ffor
/FN
To
write
a
program
defining
the
integrand's
function:
1.
Begin
with a label so that the program can be called by /FN.
2. Include an initial INPUT instruction for each variable, including
the variable of integration. (If there is only one variable in the
function, you can omit the INPUT instruction.)*
3.
Enter
the
instructions
to
define
the
function.
Use
a
RCL
instruc
tion any place a variable's value is needed for a calculation.
4. End the program with a RTN.The program should end with the
value of
the
function in
the
X-register.
Examples
Using
/FN
Example:
Bessel
Function.
The
Bessel function of
the
first
kind
of
order 0 can be expressed as
/oft)
=
V-tt
JT
cos
(x
sin*)
dt.
Find
the
Bessel
function
for
x-values
of
2
and
3.
*
The
INPUT
instructions
are
useful
for
multi-variable
functions.
Since
the
INPUT
for
the
variable of integration (integrand) is ignored, you can write one program that contains IN
PUT instructions for all
variables,
which you can then use no matter which
variable
you
specify as the variable of integration.
128
8:
Numerical
Integration

Table of Contents

Related product manuals