Search This Blog

Monday, May 23, 2011

Latex tips and tricks - keep checking for newer ones

Some  tips,
  • While creating a new book or article, if you intend to have a modified family of default font across all the pages in your doc, use
                 " \renewcommand{\familydefault}{\sfdefault} "
    in the preamble. The above, for example, sets the font to sans serif.

  • How to embed an image into a table? - Use the graphicx package and your problem is solved.
    \begin{table}[ht]
    \caption{A table arranging images}
    \centering
    \begin{tabular}{cc}
    \includegraphics[scale=1]{graphic1}&\includegraphics[scale=1]{graphic2}\\
    \newline
    \includegraphics[scale=1]{graphic3}&\includegraphics[scale=1]{graphic4}\\
    \end{tabular}
    \label{tab:gt}
    \end{table}%

Friday, May 20, 2011

Java and References

Point to note;
  1. Java has pointers!!
    Java : Dog d = new Dog("Wicky"); is same as
    C++: Dog *d;

  2. When you pass foo(d) in Java, you actually pass the pointer


Thursday, May 19, 2011

New Hope to Moores Law

The new 3-D processor

I very much believed that Moores law is no longer true with the RND coming to a standstill to no longer being able to increase the number of transistors on a processor and (so) we have been going for multi cored architecture. However, Intel has found some new way to address this limitation. It might have thought "If not XY; haaa let me go for XYZ dimension!!" and it has come up with a production solution.

This is truly going to be a real Mile stone in hardware technology and even more promising to small scale devices like IPhones, handhelds and like for this new technology can save upto 50% of power.




Play this video for some experience of the new technology.

Sources
  1. http://newsroom.intel.com/community/intel_newsroom/blog/2011/05/04/intel-reinvents-transistors-using-new-3-d-structure
  2. http://www.hindu.com/seta/2011/05/19/stories/2011051950191300.htm

Tuesday, May 10, 2011

How to calculate 'differentiation' of a given function??

  • Forward difference






  • Centered difference





Now, using a computer one can easily compute the value of  up to a certain approximation. This is one such example where a continuous computation can be approximated using discrete formulation. The key here is the value of which should be chosen NOT too large (such that curvatures are totally avoided) nor too small (such that IEEE754 might fail to represent using the system hardware). Now, one can easily write off a C/Java program so as to calculate the differentiation of a function at a given value.

Refer "Press et al, Numerical Recipes, The Art of Scientific Computing, Cambridge Univ Press, III Ed, 2007" for more details.