comp.lang.ada
 help / color / mirror / Atom feed
From: "John B. Matthews" <nospam@nospam.invalid>
Subject: Re: Inferring array index type from array object
Date: Tue, 29 Jun 2010 17:20:41 -0400
Date: 2010-06-29T17:20:41-04:00	[thread overview]
Message-ID: <nospam-E786A1.17204129062010@news.aioe.org> (raw)
In-Reply-To: Xns9DA69DDA9F2AWarrensBlatherings@81.169.183.62

In article <Xns9DA69DDA9F2AWarrensBlatherings@81.169.183.62>,
 Warren <ve3wwg@gmail.com> wrote:

> >> I was looking for the inverse of a complex  number function.
[...]
> > So, what is the "missing" function?
> > 
> > <http://www.adaic.com/standards/05rm/html/RM-G-1-2.html>
> 
> 1) The "inverse" of a complex number. 

Ah, the multiplicative inverse. I thought you meant inverse of a 
complex valued function, such as Exp/Log or Sin/Arcsin. As Adam 
and Damien suggested, 1.0 / Z looks right:

function "/" (Left : Real'Base; Right : Complex) return Complex;

<http://www.adaic.com/standards/05rm/html/RM-G-1-1.html>

> 2) Also, math libraries usually include atan2(y,x),
> since the error can be large with certain ranges
> of x in the tan(x) form:
> 
> #include <math.h>
> 
> double atan2(double y, double x);
> float atan2f(float y, float x);
> long double atan2l(long double y, long double x);

Adam also mentioned Arctan for real values:

<http://www.adaic.com/standards/05rm/html/RM-A-5-1.html>

For complex values, you may want "the principal value of the 
argument of the complex number x + iy."

<http://en.wikipedia.org/wiki/Inverse_trigonometric_functions>

function Argument (X : Complex) return Real'Base;

<http://www.adaic.com/standards/05rm/html/RM-G-1-1.html>

-- 
John B. Matthews
trashgod at gmail dot com
<http://sites.google.com/site/drjohnbmatthews>



  parent reply	other threads:[~2010-06-29 21:20 UTC|newest]

Thread overview: 41+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-06-23  7:30 Inferring array index type from array object Maciej Sobczak
2010-06-23  8:01 ` Dmitry A. Kazakov
2010-06-23  9:03   ` J-P. Rosen
2010-06-23 12:24     ` Georg Bauhaus
2010-06-23 12:52       ` J-P. Rosen
2010-06-23 19:09         ` Simon Wright
2010-06-24  7:25           ` Georg Bauhaus
2010-06-23 14:38     ` Robert A Duff
2010-06-23 15:17       ` J-P. Rosen
2010-06-23 17:17         ` Robert A Duff
2010-06-24  6:16           ` J-P. Rosen
2010-06-23 12:13   ` Niklas Holsti
2010-06-23 14:27     ` Peter C. Chapin
2010-06-23 20:24       ` Niklas Holsti
2010-06-23 16:33     ` Warren
2010-06-23 17:49       ` Dmitry A. Kazakov
2010-06-23 18:45         ` Warren
2010-06-23 20:39       ` Niklas Holsti
2010-06-28 13:44         ` Warren
2010-06-28 22:18           ` Niklas Holsti
2010-06-29  1:49             ` Adam Beneschan
2010-06-29  2:10               ` (see below)
2010-06-29 16:56             ` Warren
2010-06-29 17:50               ` John B. Matthews
2010-06-29 19:31                 ` Warren
2010-06-29 20:06                   ` Jeffrey R. Carter
2010-06-29 20:16                     ` Warren
2010-06-29 20:22                   ` Adam Beneschan
2010-06-29 20:39                     ` Dmitry A. Kazakov
2010-06-29 20:55                     ` Warren
2010-06-29 21:00                       ` Warren
2010-06-29 21:47                         ` John B. Matthews
2010-06-29 21:52                         ` Damien Carbonne
2010-06-29 22:22                         ` Adam Beneschan
2010-06-30 16:43                           ` Warren
2010-06-29 21:18                       ` Jeffrey R. Carter
2010-06-30  5:01                     ` Simon Wright
2010-06-30 14:29                       ` Adam Beneschan
2010-06-29 20:28                   ` Damien Carbonne
2010-06-29 21:20                   ` John B. Matthews [this message]
2010-06-23 13:12 ` Gautier write-only
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox