Also known as Numerical Input boxes. You can make Krita do simple maths for you in the places where we have number input. Just select the number in a spinbox, or right-click a slider to activate number input. It doesn’t do unit conversion yet, but this is planned.
- Addition (Operator: + )
Just adds the numbers. Usage:
- Subtraction (Operator: - )
Just subtracts the last number from the first. Usage:
- Multiplication (Operator: * )
Just multiplies the numbers. Usage:
- Division (Operator: / )
Just divides the numbers. Usage:
- Exponent (Operator: ^ )
Makes the last number the exponent of the first and calculates the result. Usage:
- Sine (Operator: sin() )
Gives you the sine of the given angle. Usage:
- Cosine (Operator: cos() )
Gives you the cosine of the given angle. Usage:
- Tangent (Operator: tan() )
Gives you the tangent of the given angle. Usage:
- Arc Sine (Operator: asin() )
Inverse function of the sine, gives you the angle which the sine equals the argument. Usage:
- Arc Cosine (Operator: acos() )
Inverse function of the cosine, gives you the angle which the cosine equals the argument. Usage:
- Arc Tangent (Operator: atan() )
Inverse function of the tangent, gives you the angle which the tangent equals the argument. Usage:
- Absolute (Operator: abs() )
Gives you the value without negatives. Usage:
- Exponent (Operator: exp() )
Gives you given values using e as the exponent. Usage:
- Natural Logarithm (Operator: ln() )
Gives you the natural logarithm, which means it has the inverse functionality to exp(). Usage:
The following are technically supported but bugged:
- Common Logarithm (Operator: log10() )
Gives you logarithms of the given value. Usage:
Order of Operations.¶
The order of operations is a globally agreed upon reading order for interpreting mathematical expressions. It solves how to read an expression like:
You could read it as 2+3 = 5, and then 5*4 =20. Or you could say 3*4 = 12 and then 2+12 = 14.
The order of operations itself is Exponents, Multiplication, Addition, Subtraction. So we first multiply, and then add, making the answer to the above 14, and this is how Krita will interpret the above.
We can use brackets to specify certain operations go first, so to get 20 from the above expression, we do the following:
( 2+3 )*4
Krita can interpret the brackets accordingly and will give 20 from this.
Sometimes, you see the result becoming red. This means you made a mistake and Krita cannot parse your maths expression. Simply click the input box and try again.