Can Ruby do Algebra?

Hi,

Is it possible to do algebra in Ruby?

For example y * y = x
puts x

y^2

I never really thought about this until now…

Thanks,
Dave

Have you tried anything to find the answer? If so, what kind of doubt do
you entertain. If not, why not?