13.07.2015 Views

pcp_reference_guide_v2.5 - Tasking

pcp_reference_guide_v2.5 - Tasking

pcp_reference_guide_v2.5 - Tasking

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

3−16PCP Reference Manual@SNH(expression)Returns the hyperbolic sine of expression as a floating−point value.Example:HSINE .EQU @SNH(VAL);hyperbolic sine@SQT(expression)Returns the square root of expression as a floating−point value. expressionmust be positive.Example:SQRT1 .EQU @SQT(3.5) ;SQRT1 = 1.870829SQRT2 .EQU @SQT(16) ;SQRT2 = 4ASSEMBLY LANGUAGE@SUB(string,expression1,expression2)Returns the substring from string as a string. Expression1 is the startingposition within string, and expression2 is the length of the desired string.The assembler issues an error if either expression1 or expression2 exceedsthe length of string. Note that the first position in a string is position 0.Example:.DEFINE ID "@SUB(’PCP−assembler’,4,9)" ;ID =’assembler’@TAN(expression)Returns the tangent of expression as a floating−point value.Example:TANGENT .SET @TAN(1.0) ;TANGENT = 1.5574077@TNH(expression)Returns the hyperbolic tangent of expression as a floating−point value.Example:HTAN .SET @TNH(1) ;HTAN = 0.76159415595

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!