Pi: "unit circle" in the output message
This commit is contained in:
parent
7627af5d5b
commit
f54e209c2f
@ -109,7 +109,7 @@ class Pi(Module):
|
|||||||
finally: cur.close()
|
finally: cur.close()
|
||||||
|
|
||||||
return self.reply(connection, event,
|
return self.reply(connection, event,
|
||||||
"({0:.10f}, {1:.10f}) is {2}within the circle. "\
|
"({0:.10f}, {1:.10f}) is {2}within the unit circle. "\
|
||||||
"pi is {5:.10f}. (i:{3:d} p:{4:d})".format(x, y,
|
"pi is {5:.10f}. (i:{3:d} p:{4:d})".format(x, y,
|
||||||
"" if inside else "not ",
|
"" if inside else "not ",
|
||||||
count_inside, count, pi))
|
count_inside, count, pi))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user