Module: Arithmetic expressions


Problem

3 /7


Встроенные функции

Theory Click to read/hide

Any programming language includes many built-in functions that can be used in arithmetic expressions.
To use additional functions, you often have to connect additional libraries.

For example, the most commonly used standard mathematical functions and their writing in Java

Math.abs(i) absolute value of i  \(|i|\)
Math.sqrt(x) \(\sqrt x\)
Math.pow(x,y) \(x^y\)

Remember that the function argument is always written in brackets.

Problem

Write a program that determines the distance between two points with the given coordinates x1 and x2 on the numerical axis. The distance between two points is calculated using the formula | x2 - x1 |.
The first line of input contains two real numbers. Print one real number - the distance between two points

Example
Входные данные Выходные данные
1 100000 0 100000.000000