y = mul([x1,x2, ...,xn]);
This function is used for multiplication of variables of which one may be unknown. It returns the equation y = x1 * x2 * .. * xn. During processing this equation will be automatically reshaped into a causal form.
This function is created for use in library models that have unknown inputs such as MultiplyDivide model. Try to avoid the use of this function!
equations |
after reshaping (processing) |
x1 = 1; x2 = 2; 1 = mul([x1,x2,x3]);
|
x1 = 1; x2 = 2; x3 = (1/x1)/x2;
|
y = sin(time); x2 = 2; y = mul([x1,x2]); |
y = sin(time); x2 = 2; x1 = y/x2; |
This function is designed for a special class of models and should be used by experienced users only! y, x1, x2, ..,xn must be scalars. n may be 1 or higher1