#### MiningMath

Promoting the spread of knowledge and supporting businesses through win-win relationships

# The Calculator

Estimated reading: 3 minutes 829 views

This feature allows the user to manipulate their project inside MiningMath, enabling adjustments and new field creation. Figure 1 shows a general view of the calculator. On the left side we have the block parameters and on the right the calculator itself, where the calculation can be done.

To manipulate the calculator just insert a name for the new field, select the type of field (to know more about field types,), and build your expression. In case of a more complex expression, just mark the field “Logical Test” to enable conditional features. To manipulate the calculator just insert a name for the new field, select the type of field (to know more about field types, access this link), and build your expression. In case of a more complex expression, just mark the field “Logical Test” to enable conditional features.

• + : Addition

• - : Subtraction

• * : Multiplication

• / : Division

• % : Modulus

• ** : Exponential

• // : Floor division

## Practical approach

To facilitate the understanding, let’s work on some examples. You can see below a generic math expression (left), and its equivalent written on MiningMath’s calculator (right)

$$(x^2)\times(\frac{y}{2}-1)$$ x**2*((y/2)-1)

## Adding a field without logical expression

Using an example of the Marvin’s Economic Value calculation, we are going to add a Block Tonnes field, as the figure 2:

## Adding a field with a logical expression

One more time using Marvin’s block model, let’s suppose we want a maximum slope angle of 45 degrees.

First, we name our Field, in this case, will be “SlopeMax45d”, select the field type as “Slope” and check the Logical Test box. Then a double click on the Slope field select it and already put it on the Expression. The next step is to select the operator, as we want a maximum of 45 degrees, we choose the operator “>” and insert the value 45 in the text box. If the value is true, that is, if this value is bigger than 45 it will now have the value of 45 assigned to it. If the value is false, i.e., lower than 45, then it will keep its value. Figure 3 shows this calculation:

During the expression construction, green or red lines will underline it, highlighting the correct parts and the ones that need adjustments to become correct. When it is all set, just click on “Add field” and this new field will be available for use on the project on its correct field type assignments. In case the user needs to delete a field, just go to the parameters option, select and delete it.

## Floating-point numbers

Same scenario, different results? Is it possible to find different results for t...

## Translations

MiningMath supports and encourages the translation of its knowledge base to mult...

## Imperial System

For importing databases, MiningMath uses the metric system exclusively. In case ...

## In-Depth MiningMath

This tutorial provides a detailed guidance to the pages in the knowledge base fo...

## Theory Validation

MiningMath’s results are only possible due to its proprietary Math Program...

## Guaranteed Solutions

Multiple, complex constraints increase the likelihood of not finding or not exis...

## MiningMath Uniqueness

MiningMath allows mining managers to improve their strategic analysis through ri...

## Time Limit

It is possible to indicate a time limit in hours before running a scenario in th...