I have to challenge your result here Prospero, sorry about that. Dug out my old mathbooks from the university to verify, it might still be wrong though so if someone else could verify it Please do.
my bad. i forgot to add the sqrt() call while i was busy checking the parenthesis were where they should be
