Excel VLOOKUP is a very useful function to retrieve data from table rows. We lookup function easily return the data in a table or a range by row. As example, to lookup the age of a person. Excel VLOOKUP formula Syntax : VLOOKUP (value, table, col_index, [range_lookup]) Value : The value to search from first column…
How to check a string is number in java using regular expression
Checking whether a string is number or not can be very useful in certain application. In Java there are various way to check whether a number is a string or not. We can use the Exception , try .. catch block, checking character by character or by using regular expression. Compared to all the methods,…
public static void main(String[] args) explaination
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…
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: