# Код на ruby 2.2.3p173
def zadanie(a, x, z)
b = 9*a-a*a-3*x/z**2+(9*a+3*x)*z*z
w = (z+b*a**2-z/3.3+z*z/3-((b-a)**3)/55)/(z-z*z)
c = (b-w**2)/(a**2-b) - (w-b)/(a+b**2)*7*a + (b-a+x)/(a+b**2-x)
d = b/23/x - 5*c*a*a - 17.75/x/x/b
return [b,w,c,d]
end
# Примеры применения
p zadanie(-1.0,-2.0,-2.0)
Вывод
[-68.5, -920.5334595959597, -12194.81638060439, 60975.63581447863]