.. algorithm:: .. summary:: .. relatedalgorithms:: .. properties:: Description ----------- Subtract two :ref:`MDHistoWorkspace `'s or a MDHistoWorkspace and a scalar. - **MDHistoWorkspace - MDHistoWorkspace** - The operation is performed element-by-element. - '''MDHistoWorkspace - Scalar ''' - The scalar is subtracted from every element of the MDHistoWorkspace. The squares of errors are summed. - **Scalar - MDHistoWorkspace** - This is not allowed. - **:ref:`MDEventWorkspace ` - :ref:`MDEventWorkspace `** - The signal of each event on the right-hand-side is multiplied by -1 before the events are summed. - The number of events in the output MDEventWorkspace is that of the LHS and RHS workspaces put together. - **:ref:`MDEventWorkspace ` - Scalar or MDHistoWorkspace** - This is not possible. .. categories:: .. sourcelink::