ContDivCont
Creates a new continuous variable with values contVar1[i]/contVar2[i], returns a reference to the new variable.
Syntax
ContDivCont(contVar1, contVar2)
Parameters
Parameter |
Type |
Description |
---|---|---|
contVar1 |
variableReference |
Reference to the continuous variable. |
contVar2 |
variableReference |
Reference to the continuous variable. |
Return
Creates a new continuous variable with values contVar1[i]/contVar2[i] (if contVar2[i] is zero, the result of division is contVar1[i]), returns a reference to the new variable.
Examples
Python
import nex
doc = nex.GetActiveDocument()
FP01_divided_by_FP02 = nex.ContDivCont(doc["FP01"], doc["FP02"])
# you can also use arithmetic operations on continuous variables:
doc["FP01_divided_by_FP02"] = doc["FP01"]/doc["FP01"]
NexScript
doc = GetActiveDocument()
FP01_divided_by_FP02 = ContDivCont(doc["FP01"], doc["FP02"])