Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.lang.Math;
- /**
- * Write a description of class PiCalculator here.
- *
- * @author (your name)
- * @version (a version number or a date)
- */
- public class PiCalculator
- {
- public static void main(String[] args){
- int pi;
- //int sqrt = Math.sqrt(2);
- double k = 3;
- pi = ((1 / Math.pow(16,k)) * (4 / (Math.pow(8,k)) + 1) - (2 / Math.pow(8,k) + 4)) - (1 / (Math.pow(8,k)) + 5) - (1 / (Math.pow(8,k) + 6));
- }
- }
Add Comment
Please, Sign In to add comment