Current Page:
NeXtMidas Training
Getting Started - Part 1
Lab 1
Instructions
|
|
- Lab 1:
- This lab will show some of the basics of running commands in NeXtMidas. Since we have
not yet covered how to get help in NeXtMidas, everything will be explained in this
lab. If you get stuck, feel free to look at the solution on the next page.
- Commands you will need to use:
- GET
- SET
- CALCULATOR
- This is a simple reverse polish calculator.
- For this lab all you need to know is that it can be used with the following
syntax:
CALCULATOR <label> <a> <b> <op>
Where <label> is the name of the result to store the answer
to, <a> and <b> are numbers and
<op> is the operation to perform (can be + ,
- , * , or / , for add, subtract, multiply,
and divide).
- If the
/HEX switch is provided the answer will be given in
hexadecimal (base-16) notation.
- What you need to do:
- Start a new NeXtMidas session.
- Start the NeXtMidas shell.
- Set a result,
X to 7.5.
- Compute the value of
X multiplied by 3.5 and store
the result in Y .
- Now change the value of
X to be 2.5.
- Compute the value of
X multiplied by Y and store
the result in hexadecimal notation in Z .
- What are the values of
X , Y , and Z ?
|
|
|