Calculation by a given formula


Plus
Pin


Problem description Progress
ID 23573. Complex formula-2
Темы: Calculation by a given formula   

Two integers are entered from the keyboard: first a, then  b (both numbers are not greater than 1000).
Write a program to calculate  x and y values ​​using formulas.

\(x = \frac {\frac 2 {a^2+25}+b} {\sqrt b + \frac {a+b} 2}\)  and  \(y = \frac {\vert a \vert +2 \cdot sin(b)} {5.5 \cdot a}\)

Input
The input is 2 integers  and b (both modulo no more than 1000).

Imprint
Display the x and y values, as  
x=value
y=value

 
Examples
# Input Output
1 5 3 x=0.530351
y=0.192081

ID 23572. Complex formula - 1
Темы: Formula derivation    Calculation by a given formula   

Two integers are entered from the keyboard: first x, then  y (both numbers are not greater than 1000).
Write a program to calculate the values ​​of z and q using formulas.

\(z = \frac {x + \frac {2+y} {x^2}} {y+ \frac 1 {\sqrt{x^2+10}}}\)  and  \(q = 2.8 \cdot sin(x) + \vert y \vert\)

Input
The input is 2 integers  and y (both numbers modulo no more than 1000).

Imprint
Display the z and q values, as  
z=value
q=value

 
Examples
# Input Output
1 5 3 z=1.64088
q=0.315012