Xah Lee schreef:
> Xah Lee wrote:
> «
> ...
> “Ignorance And Intolerance In Online Computing Communities”
> http://xahlee.org/Netiquette_dir/ignorance_intolerance.html
>
> ... As i have indicated in my post, it is non-trivial to implement a
> function that returns the positive angle of a vector..
Xah Lee wrote:
> I'm still interested, if someone would show the source code, of how
> Perl, Python, or Lisp or Java, implement the function that finds the
> angle of a complex number.
So you have forgotten to cross-post to comp.lang.java :-)
I think at least for strict floating-point Java uses
It is not that difficult to those of us who know math. Obvious analogy
to the function below exists in 'perl'.
double vectorAngle( double x, double y )
{
double r2 = x*x+y*y;
if( r2 == 0 ) return -10; // error case
int quadrant = x > 0 ? (y >= 0 : 0 : 3) : (y > 0 ? 1 : 2);
return pi/2
Xah Lee wrote:
«
...
“Ignorance And Intolerance In Online Computing Communities”
http://xahlee.org/Netiquette_dir/ignorance_intolerance.html
... As i have indicated in my post, it is non-trivial to implement a
function that returns the positive angle of a vector
»
I have now coded this. I th
> As i have indicated in my post, it is non-trivial to implement a
> function that returns the positive angle of a vector. For example, it
> can be done with sign checking of the coordinate components (in total
> 4 cases, which can be done as 2 levels of nesting if, or simply 4
> if.), and or the
On Thu, 03 May 2007 14:54:21 +1000, Steven D'Aprano
<[EMAIL PROTECTED]> wrote:
>Subject: Responding to Trolls [was Re: ignorance and intolerance in computing
>communties]
Nope. No way.
Michele
--
{$_=pack'B8'x25,unpack'A8'x32,$a^=sub{pop^pop}->(map s
On May 2, 11:33 am, Xah Lee <[EMAIL PROTECTED]> wrote:
[...]
> In a person's computing career, concrete and specialized questions
> like these abound, and the answers or knowledge about them are scarce.
> Due to the general ignorance of technical knowledge, and the power-
> struggling nature of mal
On May 2, 8:33 am, Xah Lee <[EMAIL PROTECTED]> wrote:
> As i have indicated in my post, it is non-trivial to implement a
> function that returns the positive angle of a vector. For example, it
> can be done with sign checking of the coordinate components (in total
> 4 cases, which can be done as