Namespace Operator

Keystroke: [Ctrl][Shift]N

m[mc]

This subscript specifies which version of a variable or function name to use in an expression. It resolves ambiguous definitions. Available module names are:

To use it:

  1. Type the first part of the name (m), the part that comes before the subscript.

  2. Type [Ctrl][Shift]N. A set of square braces appear with a placeholder between them.

  3. Type the name of a Mathcad module, for example, unit, to indicate that m represents a built-in Mathcad unit (in this case, meters).

Namespace clarification is useful when you are reusing variable or function names. For example, if you want to distinguish between a variable named m in your document, and the unit meters as defined inside Mathcad, you would type

m:= 3·m[unit]
meaning that the worksheet variable m has value 3 meters.

Use this operator to clarify function definitions which seem to be recursive but really depend upon previous definitions. For example, defining

sin(x):= sin[mc](x·deg)
produces a new version of the sine function with arguments in degrees. The use of the [mc] namespace is not essential, but it is clearer. In addition, once you have redefined the built-in function, you can still access the original definition using the [mc] namespace. Use the namespace [doc] when you need to refer to the most recent worksheet definition of a function name outside of the current definition, rather than a built-in Mathcad function name.

Notes:

QuickSheet