Re: Core Euphoria Functions

new topic     » goto parent     » topic index » view thread      » older message » newer message

George Orr wrote:
> Robert Craig wrote:
> > George Orr wrote:
> > > Is there a reason that we have the natural logarithm log(x) as a core
> > > Euphoria
> > > function but do not have exp(x)?
> > I didn't like to add lots of very simple global functions that
> > the programmer could create for himself, probably in 
> > less time than it would take him to browse through the manual.
> > We have "PI" in misc.e.
> > We could add "e" as well,
> > but I bet that would cause a lot of naming conflicts.
> I actually use your solution myself, having added the value for e (I called
> it GSL_E since I borrowed it from the GNU Scientific Library code) and having
> added
> an exp(x) function using this value of e and the power(x,y) function.

This is why there's often been a call for standard libraries. That's also why
I finally created the Euphoria Unofficial Standard Libraries, which includes
math.e and which defines E and exp().

If anybody would like to take a look, please see the entry titled,
"The Perfect Euphoria Setup" at my Euphoria site: http://cklester.com/euphoria/,
and make sure to visit the EusLibs repository at SourceForge.

Work with me, people. :)

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu