The public static void main(String[] args) // starting a program in Java is one of the strange line for Java beginners. It automatically trigger a question, why its like that. Compared to void main() // starting a program in C in C which are much simpler. So what does it means? First of all lets…
Month: July 2018
Printing Hello World in Java
123456public class HelloWorld { public static void main(String[] args) { System.out.println("Hello World!"); } } Above program is example of how to print hello world in Java. To print out, java print method is used. System.out.println(“Hello World!”); println will print the string “Hello World” together with a…
How to write formula in wordpress blog post
If you are going to write the formula in wordpress blog, you need to install appropriate plugin that enable to write formula. In this blog, we are using MathTex equation editor plugin which can be downloaded for free. Installing MathTex equation editor plugin will add an icon to the WordPress editor Toolbar. Clicking the icon…
Let p denote the probability of some event. Plot the amount of information gained by the occurrence of this event for 0≤𝑝≤1 .
The question is asking to plot I vs p. I is the information while p is the probability. Given that, the formula of I in term of p are as follows: By using excel , the graph are as follows: