Nice to hear from you, but look my dear, when ever I just going thru ur posting,
I was unable to stop laugh for stupid question..
If a fellow, who knows the basic mathematics can able to convert this. However
first and foremost dont think in Java way as Mr Nico told , think in general way
and then try to achieve that in specific langauge ....