From: Albert G. <Dr....@t-...> - 2008-08-18 17:32:21
|
Eddie Rucker wrote: >> > sqrt (1+:2); >> 2.23606797749979*cos (t/2)+:2.23606797749979*sin (t/2) Oops. Fixed. >> Another nice way of doing this is: >> >> sqrt (x+:y) = sqrt (0.5*(r+a)) +: sqrt (0.5*(r-a)) >> when >> r = sqrt x*x+y*y; >> end; a = ? > Oops. That r should be r = sqrt (x*x+y*y). -- Dr. Albert Gr"af Dept. of Music-Informatics, University of Mainz, Germany Email: Dr....@t-..., ag...@mu... WWW: http://www.musikinformatik.uni-mainz.de/ag |