# Math operations

Summary of the Math Operations components available through the Signal Processing toolbox in Schematic Editor.

The toolbox provides ten math operation components, such as gain, sum, abs, limit, round, etc. Their descriptions and supported features are given in Table 1.

Component | Description | Features | Help file | ||
---|---|---|---|---|---|

supported input types | supported output types | vector support | |||

Gain |
Element-wise gain (y = K.*u) or matrix gain (y = K*u) | real, int, uint | real, int, uint | yes | Gain |

Sum* |
Add or subtract input signals. | real, int, uint | real, int, uint | yes | Sum |

Product* |
Multiply or divide input signals. | real, int, uint | real, int, uint | yes | Product |

Mathematical Function |
Mathematical function (exponential, log10, ln, power, sqrt or reciprocal) | real, int, uint | real | yes | Mathematical Function |

Trigonometric Function |
Computes a trigonometric function (sin, cos, tan, asin, acos, atan or atan2) | real, int, uint | real | yes | Trigonometric Function |

Abs |
Absolute value of input signal. | real, int, uint | real, int, uint | yes | Abs |

Limit |
Limit input signal to the upper and lower saturation values. | real, int, uint | real, int, uint | yes | Limit |

Round |
Rounds a floating point value to an integer (floor, ceil, round or fixed) | real, int, uint | real, int, uint | yes | Round |

Sign |
Outputs 1 for positive, -1 for negative and 0 for 0 input values. | real, int, uint | real, int, uint | yes | Sign |

Min Max* |
Selects the minimum/maximum value of input signals | real, int, uint | real, int, uint | yes | Min Max |

*Component supports operation on arbitrary number of input signals.