Re: Implementation of exp()

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

Hi there,


If you dont like the results of power(e,x) then the only alternative
is to implement your own power series.  Taylors is the most popular
and easy to implement, so maybe start there and check the accuracy
of that and compare with power(e,x).
Most of the time when i use exp(x) i implement as power(e,x) unless
i need better accuracy then i go to a big number routine, but
either way i end up using x negative because that comes up so much
more in time domain studies of electrical networks and even networks
that represent other physical processes.

Example:
  y=a*exp(-t/b)
where t is time and a,b are constants depending on circuit values
and b is almost always positive.



Take care,
Al

E boa sorte com sua programacao Euphoria!


My bumper sticker: "I brake for LED's"

 From "Black Knight":
"I can live with losing the good fight,
 but i can not live without fighting it".
"Well on second thought, maybe not."

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

Search



Quick Links

User menu

Not signed in.

Misc Menu