Rockbox.org home
release
dev builds
extras
themes manual
wiki
device status forums
mailing lists
IRC bugs
patches
dev guide



Rockbox mail archive

Subject: Ang: Re: Math in Rockbox

Ang: Re: Math in Rockbox

From: <lear_at_algonet.se>
Date: 2005-07-07

Andreas wrote:

>If x is an integer value, use one of the algorithms already given (lookup
>table or while loop). If x can be fixed point as well, you could use some
>kind of taylor approximation:
>
>e^x = x^0/0! + x^1/1! + x^2/2! + x^3/3! + ...
>
>with 10^x = (e^n)^x = e^(n*x)
>and n = ln 10 = 2.302585093
>
>for an implementation see
>http://people.csail.mit.edu/hqm/imode/fplib/FP.java.html

Thanks. I found another Java library that I decided to port from. Seems like
a popular past-time, writing fixed-point Java math libraries, for use in
e.g. mobile phones... :)

  Magnus

_______________________________________________
http://cool.haxx.se/mailman/listinfo/rockbox
Received on Thu Jul 7 12:22:30 2005


Page was last modified "Jan 10 2012" The Rockbox Crew
aaa