Checksum: # 1522d
Bytes: 189.5
Example: Convert the following algebraic expression to a series of objects in RPN syntax:
OA *TB +R!Ü
C/D
This section contains a program, BER, that calculates the real part Bern(x) of the Bessel function Jn (xe3πi/4). When n = 0,
( ) (x ⁄ 2)4 (x ⁄ 2)8 … Ber x = 1 –
2!2 4!2
Level 1 | → | Level 1 |
|
|
|
z | → | Ber(z) |
|
|
|
Techniques used in BER
Local variable structure. At its outer level, BER consists solely of a local variable structure and so has two properties of a
DO…UNTIL…END loop (indefinite loop with counter). BER calculates successive terms in the series using a counter variable. When the new term does not differ from the previous term to within the
Nested local variable structures. The outer structure is consistent with the requirements of a
RPL Programming Examples