f=->x{x<1?0.0:(1..6).map{|i|f[x-i]}.sum/6+1} p f[eval`dd`]