[Proj] Geo Transfoms and calculations
Eric Miller
EMiller at dfg.ca.gov
Tue Dec 30 13:59:43 EST 2008
Microsoft claims there is no market demand for C99. However, they have implemented some parts they've decided are useful. Not enough in my book.
They're really pushing their CLR platform and associated languages and tools (C#, VB.Net, F#, whatever). I guess Visual C doesn't make enough money for them.
>>> On 12/30/2008 at 10:24 AM, "Gerald I. Evenden" <geraldi.evenden at gmail.com>
wrote:
> On Tuesday 30 December 2008 12:39:57 pm Eric Miller wrote:
>> You need only a minor modification to Gerald's libproj4 to compile on
>> windows. Because Microsoft is lame, their math library does not include
>> atanh (or asinh or acosh).
>
> That's incredible! H&S indicate these are C99 so that may be part of the
> reason. But still ... it is almost 09. It just shows that nobody in
> Redmond
> got beyond 4th grade math ... oops, arithmatic.
>
>> Previously, I overcame this by building in a naive implementation of
>> atanh as:
>>
>> double atanh( double x )
>> {
>> return log((1 + x)/(1 - x))/2;
>> }
>>
>> Since Gerald has since embraced the GSL, maybe we can get him to use
>> the GSL versions of those functions and let the GNU folks handle
>> platform compatibility.
>
> I use MIT which is apparently tolerated by GSL but I don't want to get into
> that can of ugly worms. Besides, I do not have the libm source anyway.
> Kinda brings up a point: isn't gcc and library under GSL so that nobody can
> distribute a binary that uses the library without the associated BS?
>
> All of the equivalent forms, like above, ought to be available in math
> references on the Internet (just google 'atanh') or in Abramowitz(sp.).
> Put the code into gatesmath.c and gatesmath.h and attach to the Makefile
> lists. ;-) NO, NO! Don't answer that! No more discussion on this subject!
>
> I'm sorry, but it is crap like that that makes me have such a loathesome
> opinion of M$.
> ...
More information about the Proj
mailing list