# Mathematics

Braina can apply artificial intelligence for solving a wide range of mathematical problems. It is also a **speaking calculator software**. Just give voice commands to solve your math problem and Braina will speak the answer back to you.

Braina is a free software that can help students in doing their math homework. We are making it a brilliant mathematician and in near future it will be also able to solve complex mathematical problems of calculus and algebra in human readable notation.

## Basic Arithmetic

**Add numbers**

45 + 67

12.5 + 2.5 + 5.75

**Subract numbers**

1700 - 500

**Multiply numbers**

10,222 * 50.5

120 * 56 * 121

**Divide numbers**

7000 / 2.5

120 / 4 / 2

## Powers & Roots

**Find powers**

5^3

pow(2,8)

**Find square roots**

sqrt(81)

square root of 64

**Find cube roots**

cbrt(729)

**Compute higher roots**

6th root of 7776

## Multiple Arithmetic Operations

**Combine addition and substraction**

1 - 2 + 3 - 4 + 5 - 6 + 7 - 8 + 9 - 10

**Combine multiplication and division**

500 / 2 * 10

(25 * 4) / 2

**Combine several arithmetic operations**

(10*2 + 5*4) / (10 - 2)

sqrt(3^3 - 2) + 1

pow(81,1/2) * sqrt(81)

## Prime numbers

**Determine whether a number is prime or not**

Is 31 prime?

**Know a prime by position**

45th prime number

1000th prime

**Generate a list of prime numbers in a given range**

primes between 4500 and 5500

primes <= 50

## Percentage

**Convert fractions to percentage**

Convert 1/8 to percent

**Calculate a percentage of a number**

12% of 120

**Calculate a percentage of a quantity**

40% of 15 km

2.5% of $12500

## Percentage Increase & Decrease

**Increase a quantity by a percentage**

$2400 + 15%

**Find a discounted price**

$120.5 - 13%

**Calculate successive increase in price**

$70 + 8% + 5%

## Divisors

**Compute divisors of an integer**

divisors 4560

**Check whether a number divides another number**

Is 7654 divisible by 43?

**Find greatest common divisor**

gcd(8,48,60)

gcd of 12,21

**Find least common multiple**

lcm 6,9,12

## Set Theory

**Get union of two sets**

{2,4,6,8} union {1,2,3,5,7}

{3+4,5-2} union {6,8,10-3}

**Get intersection of two sets**

{2,3,4,5} intersect {4,5,6,7}

**Find difference of two sets**

{10,20,30,40} - {10,30,50,60}

**Add members of two sets**

{11,22,33,44} + {1,2,3,4}

## Mathematical Definitions

**Find definition of a mathematical concept.**

Matrix

Geometry

Define algebra

What is set theory?

## Number Names

**Find English name of a number**

English name of 56

10^3 + 500 in words

**Specify a number by name**

Six thousand five hundred eleven

Five billion

**Mix numerals and words**

45 million and 2 hundred

**Ask math problems in words**

One hundred fifty times nine

Square root of eighty-one

Three plus four

55 minus 5.5

Hundred divided by two

## Trigonometry

**Find cosine of x**

cos(x)

**Find sine of x**

sin(x)

**Find tangent of x**

tan(x)

**Find arc cosine of x**

acos(x)

**Find arc sine of x**

asin(x)

**Find arc tangent of x**

atan(x)

**Find hyperbolic cosine of x**

cosh(x)

**Find hyperbolic sine of x**

sinh(x)

**Find hyperbolic tangent of x**

tanh(x)

**Exponential function**

exp(x)

**Find natural logarithm of x**

log(x)

**Find base 10 logarithm of x**

log10(x)

Note: The trigonometric functions work with angles in radians and not in degrees.

## Mischelleneous

**Calculate the hypotenuse of a right angle triangle**

hypot(3,4)

**Find remainder of integer division**

33%7

**Find remainder of floating point division**

fmod(2.5,0.4)

**Find minimum of given numbers**

min(2.1,0.4)

minimum of 2,3,5,7

**Find maximum of given numbers**

max(5,4,3)

maximum of 2,3,5,7

**Round floating point numbers to specified decimal places**

Round 123.125896 to two decimal places

round(34.456,1)

**Truncate floating point numbers to specified decimal places**

trunc(123.456,2)