Linear; Quad - HP 39g Master Manual

Graphing calculator
Hide thumbs Also See for 39g:
Table of Contents

Advertisement

LINEAR?(expression,var.name)
This is another of those functions which is probably aimed more at the
programmer than at the normal user. It is designed to test whether a
supplied expression is linear or non-linear in the variable you specify,
returning zero for non-linear and 1 for linear.
Eg.
Suppose we use the expression
If X is the variable and A and B are both
constants (say A=4, B=5) then the
− +
expression
2
AX
X − +
which would be non-linear. Thus
2
4
5 4
LINEAR? returns zero (right).
On the other hand, if X were one of the
constants (say X=6) and A were the variable,
then the expression
− +
become
2
6
5 4
linear. Thus LINEAR? would return 1.
The main use for this is going to be when a programmer does not know in
advance what function the user is going to type in.
QUAD(expression,var.name)
This function uses the quadratic formula
− ±
2
b
b
4
ac
=
x
2
a
quadratic, using the 'S1' formal variable to
represent the ± symbol. The quadratic is
entered as an expression, and you must indicate which variable is being
solved for, since you could have an equation such as
P and Q were memory values, and you would need to specify to solve for X.
would become
B
4
− +
would
2
AX
B
4
A − , which is
or 36
1
to give both roots of a
− +
2
AX
B
4
Px
256
+
− =
where
2
Qx
5 0

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

40g39g+

Table of Contents