Pulser3 Programming Manual Download PDF

Calculating the Side of a Right Triangle (a = sqrt[b * b – c * c])

It subtracts the square of c from the square of b, then takes the square root of the resulting value and loads it into variable a.

Example:

(IT SUBTRACTS THE SQUARE OF 3 FROM THE SQUARE OF 5)

(THEN TAKES THE SQUARE ROOT OF THE RESULTING VALUE)

(AND LOADS IT INTO VARIABLE #0)

G65 L28 P#0 Q5 R3 (#0 WILL BE 4)

(IT SUBTRACTS THE SQUARE OF #2 FROM THE SQUARE OF #1)

(THEN TAKES THE SQUARE ROOT OF THE RESULTING VALUE)

(AND LOADS IT INTO VARIABLE #0)

G65 L28 P#0 Q#1 R#2

 

Example:

(IT SUBTRACTS THE SQUARE OF 3 FROM THE SQUARE OF 5)

(THEN TAKES THE SQUARE ROOT OF THE RESULTING VALUE)

(AND LOADS IT INTO VARIABLE #0)

#0 = SQRS[5, 3] (#0 WILL BE 4)

(IT SUBTRACTS THE SQUARE OF #2 FROM THE SQUARE OF #1)

(THEN TAKES THE SQUARE ROOT OF THE RESULTING VALUE)

(AND LOADS IT INTO VARIABLE #0)

#0 = SQRS[#1, #2]