Python2 + maths = ?

This is for Python2. A bit of binary, hex and decimal etc. Fun..

Python2 + maths = ?

This is for Python2. A bit of binary, hex and decimal etc. Fun..

Labels:
math,
maths,
programming,
python

Location:
Cwmbran, Cwmbran

//deriving 'e' or Euler's number. The equivalent would be (1+1/n)^n on a spreadsheet or using LaTex.

public class MathHell5 {

public static void main(String[] args) {

for (double d = 0; d <= 1000; d++) {

System.out.println(" ");

System.out.println(Math.pow((1+1/d),d));

}

}

}

//pow(double a, double b)

//Returns the value of the first argument raised to the power of the second argument.

//http://docs.oracle.com/javase/7/docs/api/index.html?overview-summary.html

API for Java.lang.Math - Java 8

API for Java.lang.Math - Java 7

Beyond Basic Arithmetic - Java Tutorials

API for Java.lang.Math - Java 8

API for Java.lang.Math - Java 7

Beyond Basic Arithmetic - Java Tutorials

https://www.youtube.com/watch?v=jNuBXoqPL3s&feature=youtube_gdata_player

Location:
Newport, Newport

Subscribe to:
Posts (Atom)