Reference Guide

Full Command and Function Reference 3-151
MOLWT
Type: Function
Description: Returns the molecular weight for the specified molecular formula. It takes the formula as a string
(such as "H2O") or name (with certain restrictions, such as 'H2O'). It returns the molecular
weight. It chooses to use or not use units according to the Units Usage flag (flag 61: SI units if
clear, no units if set).
You can store a molecular formula in a variable, then use the variable name with MOLWT. You
should do this when you want to use MOLWT in an expression and the formula contains
parentheses or matches a command name. You must take care when naming a variable that
contains a formula string or name. Make sure the variable name isn’t a valid formula — for
example, start the variable name with a lowercase letter. (If the variable name is a valid formula,
using MOLWT with the variable name returns the molecular weight for the variable name, not for
the formula it contains.)
Access: G
PERIODIC TABLE MOLWT
Flags: Units Usage (61)
Input/Output:
Level 1/Argument 1 Level 1/Item 1
'name'
x or x_unit
“string”
x or x_unit
Example 1: The command sequence
"CH3C6H2(NO2)3" MOLWT
returns
'227.133_g/gmol'
when flag 61 is clear.
Example 2: The command sequence
'C12H17ClN4OS' MOLWT
returns
300.8055
when flag 61
is set.
See also: PERINFO, PERTBL, PTPROP
MROOT
Type: Command
Description: Multiple Roots Command: Uses the multiple-equation solver to solve for one or more variables
using the equations in EQ. Given a variable name, MROOT returns the found value; with "ALL"
MROOT stores a found value for each variable but returns nothing.
Access: …µ
MROOT
Input/Output:
Level 1/Argument 1 Level 1/Item 1
'name'
x
"ALL"
See also: MCALC, MUSER
MSGBOX
Type: Command
Description: Message Box Command: Creates a user-defined message box.
MSGBOX displays “message” in the form of a standard message box. Message text too long to
appear on the screen is truncated. You can use spaces and new-line characters (…ë) to
control word-wrapping and line breaks within the message.
Program execution resumes when the message box is exited by selecting
OK
or
CANCL
.
Access: !°L
OUT MSGBOX
( °is the left-shift of the Nkey).