\(\renewcommand\AA{\unicode{x212B}}\)

DivideMD v1

../_images/ImageNotFound.png

Enable screenshots using DOCS_SCREENSHOTS in CMake

Summary

Divide MDHistoWorkspace’s

See Also

MinusMD, MultiplyMD, PlusMD, PowerMD

Properties

Name

Direction

Type

Default

Description

LHSWorkspace

Input

IMDWorkspace

Mandatory

An MDEventWorkspace, MDHistoWorkspace or WorkspaceSingleValue as the left-hand side of the operation.

RHSWorkspace

Input

IMDWorkspace

Mandatory

An MDEventWorkspace, MDHistoWorkspace or WorkspaceSingleValue as the right-hand side of the operation.

OutputWorkspace

Output

IMDWorkspace

Mandatory

Name of the output MDEventWorkspace or MDHistoWorkspace.

Description

Divide two MDHistoWorkspace’s or a MDHistoWorkspace and a scalar.

The error of \(f = a / b\) is propagated with \(df^2 = f^2 * (da^2 / a^2 + db^2 / b^2)\)

  • MDHistoWorkspace / MDHistoWorkspace

    • The operation is performed element-by-element.

  • MDHistoWorkspace / Scalar

    • Every element of the MDHistoWorkspace is divided by the scalar.

  • Scalar / MDHistoWorkspace

    • This is not allowed.

  • MDEventWorkspace’s

    • This operation is not supported, as it is not clear what its meaning would be.

Categories: AlgorithmIndex | MDAlgorithms\MDArithmetic

Source

C++ header: DivideMD.h

C++ source: DivideMD.cpp