definition variable name containing variables
definition variable name containing variables
(OP)
Anyone know of a workaround so a definition name can contain undefined variables? I'm attempting to have a user input a ratio and have the variable name appear as the ratio of the two previously undefined variables (i.e. Mn/Op := ___ , Mn and Op undefined). Mathcad gives the error that Mn and Z aren't defined, as expected. Any insights are appreciated.
RE: definition variable name containing variables
RE: definition variable name containing variables
TTFN
FAQ731-376: Eng-Tips.com Forum Policies
Chinese prisoner wins Nobel Peace Prize
RE: definition variable name containing variables
There are a lot of valid ways to do it:
Ratiomn_Op
MN_OP
MNdividedByOP
Any of them would work good enough.
David
RE: definition variable name containing variables
Mn<CTRL><SHFT>k/<CTRL><SHFT>kOp, which will give you a variable name "Mn/Op" but, you'll need to do the same sequence each time, unless you just copy/paste the original entry.
Note, however, if Mn and Op are actually undefined, then you'll still get an error, since Mathcad will not allow you to define a non-function calculation with undefined variables in it.
TTFN
FAQ731-376: Eng-Tips.com Forum Policies
Chinese prisoner wins Nobel Peace Prize
RE: definition variable name containing variables
RE: definition variable name containing variables
Mn/Op(Mn,Op):= function(Mn,Op) that would deal with the undefined variables.
TTFN
FAQ731-376: Eng-Tips.com Forum Policies
Chinese prisoner wins Nobel Peace Prize