next up previous contents
Next: Wiring components together Up: Working with Ravel Previous: Inserting a component   Contents

Creating an equation

Equations are entered in Ravel graphically. Mathematical operations like addition, multiplication and subtraction are performed by wiring the inputs up to the relevant mathematical block. The output of the block is then the result of the equation.

For example, a simple equation like \begin{displaymath}
ProfitMargin=(Price-Cost)/Cost
\end{displaymath}% WIDTH=567 HEIGHT=34 is performed in Ravel by : \includegraphics[width=10cm]{images/ProfitMarginEquation}% WIDTH=452 HEIGHT=107

If you click on the Equation or Summary Tab, you will see this flowchart rendered as an equation:

\begin{displaymath}
Profit_{Margin}=\frac{Price-Cost}{Cost}
\end{displaymath}% WIDTH=439 HEIGHT=70

If the variables Price and Cost were multi-dimensional—if, for example, they stored price and cost data for different products at different stores at different dates—then this one formula would calculate profit margins by product by store by date.