UCL-RITS / pi_examples

A lot of ways to run the same way of calculating pi. Some of them are dumb.
Creative Commons Zero v1.0 Universal
28 stars 8 forks source link

Add jython version #3

Closed raquelalegre closed 6 years ago

raquelalegre commented 7 years ago

One of these days...

owainkenwayucl commented 6 years ago

A quick test shows that the current python version runs on jython:

[raspberrypi:pi] ~/S/p/python_pi_dir ☻ ➤ jython python_pi
Calculating PI with:
10000000 slices
  1 process
Obtained value of PI: 3.141592853589721
Time taken: 31.934 seconds
[raspberrypi:pi] ~/S/p/python_pi_dir ☻ ➤