Hero’s Method : Evaluating square root of a real number

A floating point number is given. the task is to evaluate the value of its square root. We will discuss how to find the square root of a real number in this post, and also present a C Language code which does this job. The value of the root will be evaluated with the Hero’s method.
Continue reading “Hero’s Method : Evaluating square root of a real number”

Finding qth real root of a real number

In this post we will see how to find nth roots of a positive real number. We will use the Newton-Raphson method to deduce an iterative formula, and see its convergence.

The task is to find the real qth root of a real number. Let there be a non-negative real number C, of which the real qth root is to be found. Let the square root of C be x. We represent this with x=\sqrt[q]{C} .

Now:
x=\sqrt[q]{C}
\Rightarrow x^{q}=C
\Rightarrow x^{q}-C=0

So we are now to find the roots of the qth order function f(x)=x^{q}-C

Continue reading “Finding qth real root of a real number”

Counting Rectangles in an n X m Checked Board

We have a checked board like a chess board, but instead of 8 x 8 it has a dimension of n x m . The task is to count the number of rectangles of all possible dimensions i x j in that checked board. Also the question arises how many squares of all possible dimensions are there. We will solve this problem by establishing formulas by construction. After this we can calculate the number of rectangles and squares of a Chess Board or any other such checked board.

Continue reading “Counting Rectangles in an n X m Checked Board”

A Clean Wallpaper with GIMP

a card
gimp_logo

Yesterday was the birthday of a friend of mine. I realised that there was nothing to give her as a birthday gift, which matches my choice. A card is always great , especially if it is fully personalized and customized. So I launched GIMP, and started to think and experiment. I am trying to describe how I made the card/wallpaper with GIMP . I have tried to make it very simple. Yet again I have used the flame effect. I think it is getting monotonic, as a friend pointed out, and I should try something new and different. Please let me know your comments :) .

Continue reading “A Clean Wallpaper with GIMP”

It’s Better To Pretend You Don’t Know Anything About Computers

Yes, it is better to pretend that you don’t know anything about computers. If you want to save yourself from some difficult situation. Oh, I know it would be cool and smart telling people about your skills and demonstrating your skills, but if you have not met me, click on the below link to read the comic, to have what you could end up with:

Link: http://theoatmeal.com/comics/computers
Continue reading “It’s Better To Pretend You Don’t Know Anything About Computers”

Bash Script : Finding Digital Root of an Integer

To find a digital roots of an integer is a very common question in high school when doing introductory programming. Digital roots are defined as follows. First an integer is taken if the number of digits are greater than 1, then the sum of its digits are done, if the sum has more than one digits then again the sum of digits are done, and so on until a sum of digit has only 1 digit. This last value of the sum of digits containing a one digit value is defined as the digital root of a number. First we describe in brief what a digital root is then present a shell script.
Continue reading “Bash Script : Finding Digital Root of an Integer”