.Physiolibrary.Blocks.Math.Parts

Divide the input value by weights

Information

This blocks divide input value u to output array y by weights. The sum of output values is equal to input value u:

u = (w[1]*y[1] + w[2]*y[2] + ... + w[n]*y[n]) / (w[1] + w[2] + ... + w[n]);

Example:

     parameter:   nin = 3;  w=ones(3);

  results in the following equations:


y[1]=u/3, y[2]=u/3, y[3]=u/3;

Generated at 2026-04-15T18:18:36Z
 by OpenModelicaOpenModelica 1.26.3 using GenerateDoc.mos