% VAX-11 Librarian V04-00`ZѻHNѻ  5 Assignment ~ Command_Files NComments bDISPLAY  Expression FunctionsHELPINPUTSHOW@#(ѻ1 INPUTEThe INPUT command provides a way for command files to prompt the userEfor input. The prompt string is displayed on the terminal and the;value entered by the use is stored in the specified symbol.+Format: INPUT [QUALIFIERS] SYMBOL "PROMPT" 2 /INTEGERCUsing this qualifier cuases the users input to be converted into aninteger value.2 /FLOATCUsing this qualifier cuases the users input to be converted into anfloating-point value. 2 /DEFAULTFThe defa ult value is stored in the specified symbol if the user entersa null value (carriage return). Format: /DEFAULT=ww=.ѻ1 HELPDisplay help information.ww=.ѻ1 SHOWBThe show command displays the values of all or a specified list of!calculator symbols. For example:# Command Description@ SHOW Display the value of all defined symbols@ SHOW A,B,C Display the values of symbols A, B and C @ SHOW X Y Z Display the values of symbols X, Y and ZwwK1ѻ 1 CommentsFComment are not executed. They are provided as a means of documentingFcommand files. Any command with "!" as the first non-blank characteris a comment. For example: ! This is a comment# ! 123 + (456/2) So is thisww@X4ѻ 1 DISPLAY>The DISPLAY command changes the display characteristics of the calculator.(Format: DISPLAY PARAMETER [[,]PARAMETER]2 FI LEGThe FILE parameter specifies that commands read from command files willGbe displayed on the terminal before they are executed. An alternateform of the command is FILES.2 NOFILEIThe NOFILE parameter specifies that commands read from command files willInot be displayed on the terminal before they are executed. An alternateHform of the command is NOFILES. This is the default for the calculator. 2 PRECISIONIThe PRECISION parameter specifies the maximum number of fractional digit sIto be displayed in floating-point values. If no integer is specified theIdefault value of six (6) is is used. The precision must be an integerIbetween one (1) and sixteen (16). If a precision outside this range isIused, a warning message will be to be displayed and the precision set thethe default value of six (6).Format: PRECISION=[integer]wwr:ѻ1 Command_FilesFCommands stored in text files may be executed by the calculator. AnF"@" may be followed  by one or more file names. The default file type*for command file is ".CALC". For Example: @ FILE1,FILE2,FILE3,... @ FILE1 FILE2 FILE3 ...ww`;ѻ 1 AssignmentGThe results of an expression calculation may be assigned to an internalGsymbol that may be used in other calculations or displayed using theSHOW command. For example: RESULTS = 123 + 456# MORE_RESULTS = RESULTS / 2.0ww?ѻ 1 ExpressionEWhen a algebraic expression is entered as a command the expression isEevaluated and the results displayed on the terminal. The resultsFwill be an integer value if all of the operands are integers 0otherwise the results is a floating point value. 2 Operators2The following are legal operators for expressions:% Operator Example Results+ - [unary] -a negative of a, + [unary] +a no change in a' - a - b a minus b& +  a + b a plus B' * a * b a times b, / a / b a divided by b 2 Examples0The following are examples of legal expressions: 123 + 456 (A + B) / (C * 2.0) - (123 / 456) * (456.0 / 2.2)! 123.0 + (456.0/2.2) * 6.023e232 Precedence Of Operators9The operators are listed from higest to lower precedence., Operator Association- () left to right - - + [unary] right to left- * / right to left- - + right to left2 Numeric_Data@Numeric data may be input in several formats. The data is stored*internally in integer for floating point. 3 INTEGER3 FLOAT 3 Examples/ Integer Data Floating Point Data& 12345 123.456' %xFFF (hex) 6.023e23' %o777 (octal) 4.76e-22' %d123 (decimal) -4.76e+22wwHNѻ 1 Functions2 ABS<The ABS function returns the absolute value of an integer orfloating-point value. 2 ACOS@The ACOS function returns a value in the range zero to pi, which)is the arc cosine of its radian argument.2 ASINCThe ASIN function returns a value in the range -pi/2 to pi/2, which'is the arc sine of its radian argument.2 ATANCThe ATAN function returns a value in the range -pi/2 to pi/2, which*is the arc tangent of its radian argument. 2 CEILINGIThe CEILING function returns a floating-point value which is the smallest7integer which is greater than or equal to its argument.2 COS;The COS function returns the cosine of its radian arguemnt.2 COSHGThe COSH function returns the hyperbolic cosine of its radian arguemnt.2 EXPHThe EXP function returns teh base e raised to the power of the argument.2 FLTAThe FLT function converts its argument to a floating-point value.2 FLOORFThe FLOOR function returns a floating-point value which is the largest4integer which is less than or equal to its argument.2 INT;The INT function converts its argument to an integer value.2 LN>The LN function returns the natural logarithm of its argument.2 LOG>The LN function returns the base 10 logarithm of its argument.2 POWEThe POW function return the first argument raised to the power of itssecond argument).2 RANDBThe RAND function uses a multiplicative congruential random number>generator with a repeat factor ( period) of 2 to the 23 power. CThe function must have a legal argument even though it is not used..See the SEED function for further information.2 MAX5The MAX function return the maximum of two arguments.2 MIN5The MIN function return the mimimum of two arguments.2 MODFThe MOD function return an integer which is the remainder of the first0integer argumant divided by the second argument.2 SEEDIThe SEED function returns a randum number exactly like the RAND function.DThe random num ber generator is reinitilized by calling SEED with theEargument 1, or it cal be set to a specific point by calling SEED with any number.2 SIN9The SIN function returns the sine of the radian argument.2 SINHDThe SIN function returns the hyperbolic sine of the radian argument.2 SQRT:The SQRT function returns the square root of its argument.2 TAN<The TAN function returns the tangent of the radian argument.2 TANHHThe TANH function returns the hyperbolic tangent of the radian argument.ww