comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Inverse hyperbolics?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Inverse hyperbolics? [message #85810] Wed, 11 September 2013 03:48 Go to next message
tom.grydeland is currently offline  tom.grydeland
Messages: 51
Registered: September 2012
Member
Will these be in IDL anytime soon? I'm amazed they're not.
(Yes, I have the implementation from MGLib)

If you need a reason, look no further than http://en.wikipedia.org/wiki/Universal_Transverse_Mercator_c oordinate_system

--T
Re: Inverse hyperbolics? [message #85811 is a reply to message #85810] Wed, 11 September 2013 09:14 Go to previous messageGo to next message
Mark Piper is currently offline  Mark Piper
Messages: 198
Registered: December 2009
Senior Member
On Wednesday, September 11, 2013 4:48:48 AM UTC-6, Tom Grydeland wrote:
> Will these be in IDL anytime soon? I'm amazed they're not.
>
> (Yes, I have the implementation from MGLib)
>
>
>
> If you need a reason, look no further than http://en.wikipedia.org/wiki/Universal_Transverse_Mercator_c oordinate_system
>
>
>
> --T

This is a very reasonable request. While we're at it, maybe we should add secant, cosecant and cotangent functions. And a log base 2 function. Here's the list of transcendental functions currently in IDL:

http://www.exelisvis.com/docs/routines-65.html

Any others?

mp
Re: Inverse hyperbolics? [message #85812 is a reply to message #85811] Wed, 11 September 2013 09:34 Go to previous messageGo to next message
suicidaleggroll is currently offline  suicidaleggroll
Messages: 14
Registered: September 2013
Junior Member
On Wednesday, September 11, 2013 10:14:43 AM UTC-6, Mark Piper wrote:
> On Wednesday, September 11, 2013 4:48:48 AM UTC-6, Tom Grydeland wrote:
>
>> Will these be in IDL anytime soon? I'm amazed they're not.
>
>>
>
>> (Yes, I have the implementation from MGLib)
>
>>
>
>>
>
>>
>
>> If you need a reason, look no further than http://en.wikipedia.org/wiki/Universal_Transverse_Mercator_c oordinate_system
>
>>
>
>>
>
>>
>
>> --T
>
>
>
> This is a very reasonable request. While we're at it, maybe we should add secant, cosecant and cotangent functions. And a log base 2 function. Here's the list of transcendental functions currently in IDL:
>
>
>
> http://www.exelisvis.com/docs/routines-65.html
>
>
>
> Any others?
>
>
>
> mp

For log base 2 (or any other base), just make your own function:

function alogn, x, n
return, alog(x)/alog(n)
end

And secant, cosecant, cotangent are even easier. Just more 1-liners.
Re: Inverse hyperbolics? [message #85813 is a reply to message #85812] Wed, 11 September 2013 09:55 Go to previous messageGo to next message
Mark Piper is currently offline  Mark Piper
Messages: 198
Registered: December 2009
Senior Member
On Wednesday, September 11, 2013 10:34:21 AM UTC-6, suicida...@gmail.com wrote:
>
> For log base 2 (or any other base), just make your own function:
>
> function alogn, x, n
> return, alog(x)/alog(n)
> end
>
> And secant, cosecant, cotangent are even easier. Just more 1-liners.

True, but why should a user have to go through an extra step? These functions should just be included, as a convenience, in IDL.

mp
Re: Inverse hyperbolics? [message #85815 is a reply to message #85811] Wed, 11 September 2013 12:28 Go to previous messageGo to next message
Lajos Foldy is currently offline  Lajos Foldy
Messages: 176
Registered: December 2011
Senior Member
On Wednesday, September 11, 2013 6:14:43 PM UTC+2, Mark Piper wrote:

> This is a very reasonable request. While we're at it, maybe we should add secant, cosecant and cotangent functions. And a log base 2 function. Here's the list of transcendental functions currently in IDL:
>
> http://www.exelisvis.com/docs/routines-65.html
>

exp? :-)

(It is there under Math Miscellaneous, but why there?)

regards,
Lajos
Re: Inverse hyperbolics? [message #85817 is a reply to message #85815] Wed, 11 September 2013 14:20 Go to previous messageGo to next message
Paul Van Delst[1] is currently offline  Paul Van Delst[1]
Messages: 1157
Registered: April 2002
Senior Member
Huh, that is weird. If you've got ALOG in the list of transcendentals,
why not its "inverse"?

BTW, this is a side issue, I've always wondered why the logarithm
function is called ALOG instead of just LOG.

cheers,

paulv


On 09/11/13 15:28, fawltylanguage@gmail.com wrote:
> On Wednesday, September 11, 2013 6:14:43 PM UTC+2, Mark Piper wrote:
>
>> This is a very reasonable request. While we're at it, maybe we
>> should add secant, cosecant and cotangent functions. And a log base
>> 2 function. Here's the list of transcendental functions currently
>> in IDL:
>>
>> http://www.exelisvis.com/docs/routines-65.html
>>
>
> exp? :-)
>
> (It is there under Math Miscellaneous, but why there?)
>
> regards, Lajos
>
Re: Inverse hyperbolics? [message #85823 is a reply to message #85817] Thu, 12 September 2013 01:20 Go to previous messageGo to next message
Lajos Foldy is currently offline  Lajos Foldy
Messages: 176
Registered: December 2011
Senior Member
On Wednesday, September 11, 2013 11:20:21 PM UTC+2, Paul van Delst wrote:

> BTW, this is a side issue, I've always wondered why the logarithm
> function is called ALOG instead of just LOG.

My guess is Fortran legacy.

regards,
Lajos
Re: Inverse hyperbolics? [message #85826 is a reply to message #85811] Thu, 12 September 2013 02:58 Go to previous message
tom.grydeland is currently offline  tom.grydeland
Messages: 51
Registered: September 2012
Member
On Wednesday, September 11, 2013 6:14:43 PM UTC+2, Mark Piper wrote:

> This is a very reasonable request.

Glad you think so! :-)

> While we're at it, maybe we should add secant, cosecant and cotangent functions.

... and their hyperbolic counterparts?

> And a log base 2 function.

Certainly.


> http://www.exelisvis.com/docs/routines-65.html
> Any others?

We've found that an 'EXPI' function, returning 'COMPLEX(COS(X), SIN(X))', would give a significant improvement in performance over 'EXP(I*X)' for a real argument.

> mp

--T
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: pointer to function
Next Topic: strsplit vectorized

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 15:07:48 PDT 2025

Total time taken to generate the page: 0.05817 seconds