833
3
2
3
A
5
6
7
8
Appendix 3APPLICATION PROGRAM EXAMPLES
Appendix 3.
1Concept of Prog
rams which Per
form Oper
ation
s of a
nth power
of X, a nth r
oot X
Appendix 3
APPLICATION PROGRAM EXAMPLES
Appendix 3.1
Concept of Programs which Perform Operations of a nth
power of X, a nth root X
(1) Concept of programs which perform operations of X
n
X
n
can be operated using e
(nlogeX)
.
For example, the operation of 10
1.2
is e
(1.2 loge10)
, which is represented in the form of a sequence program as shown
below.
(2) Concept of program which performs operation of
can be operated using
.
For example, the operation of
is
, which is represented in the form of a sequence program as shown
below.
Con
v
erts 10 into a real number format data
and stores the result in D0 and D1.
Executes Loge10 operation and stores the
result in D2 and D3.
Con
v
erts 12 into a real number format data
and stores the result into D4 and D5.
Di
v
ides D4 and D5 (12) by D0 and D1 (10),
and stores the result (1, 2) in D6 and D7 (1, 2).
Multiplies D2 and D3 (Loge10) by D6 and
D7 (1, 2) and stores the result in D8 and D9.
Executes Loge(D8, D9) operation and stores
the result in D10 and D11.
X
n
X
n
(
l
og
eX
)
e
1
n
10
3
(
log
e
10)
e
1
3
Con
v
erts
10
i
nto
a
rea
l
number
format
data
and
stores
the
resu
l
t
i
n
D20
and
D21
.
E
xecutes
L
oge10
operat
i
on
and
stores
the
resu
l
t
i
n
D22
and
D23
.
Con
v
erts
3
i
nto
a
rea
l
number
type
data
and
stores
the
resu
l
t
i
n
D2
4
and
D25
.
D
ivi
des
D22
and
D23
(
L
oge10)
by
D2
4
and
D25
(3)
and
stores
the
resu
l
t
i
n
D26
and
D27
.
E
xecutes
L
oge(D26,
D27)
operat
i
on
and
stores
the
resu
l
t
i
n
D28
and
D29
.