Numbers entered in program lines, Polynomial expressions and horner's method – HP 33s User Manual

Page 181

Advertising
background image

Simple

Programming

12–23

Numbers Entered in Program Lines

Before starting program entry, set the base mode. The current setting for the base
mode determines the base of the numbers that are entered into program lines. The
display of these numbers changes when you change the base mode.

Program line numbers always appear in base 10.

An annunciator tells you which base is the current setting. Compare the program
lines below in the left and right columns. All non–decimal numbers are
right–justified in the calculator's display. Notice how the number 13 appears as
"D" in Hexadecimal mode.

Decimal mode set:

Hexadecimal mode set:

:

:

:

:

PRGM



%

PRGM

 



PRGM HEX



%

PRGM HEX

  

:

:

:

:

Polynomial Expressions and Horner's Method

Some expressions, such as polynomials, use the same variable several times for
their solution. For example, the expression

Ax

4

+ Bx

3

+ Cx

2

+ Dx + E

uses the variable x four different times. A program to calculate such an expression
using ALG operations could repeatedly recall a stored copy of x from a variable.

Example:

Write a program using ALG operations for 5x

4

+ 2x

3

, then evaluate it for x = 7.

Advertising