Implementation of weierstrass function

P

Phlip

Phillip said:
Do you know for C implementation of the weierstrass function as
defined from http://en.wikipedia.org/wiki/Weierstrass_function with
guaranteed 18 decimal digits precision (long double) for 0 <= x < 2?

You are asking about a "bigint" or "high precision math library". I think
there's one out there that begins with G. After you find it (by googling for
"high precision library"), typing in the formula will be trivial.
 
C

Chris Torek

Do you know for C implementation of the weierstrass function as
defined from http://en.wikipedia.org/wiki/Weierstrass_function with
guaranteed 18 decimal digits precision (long double) for 0 <= x < 2?

Since the Weierstrass function is not differentiable (despite being
continuous -- it is "infinitely jagged", similar I suppose to Julia
sets for instance) some of the standard ideas, such as using a Taylor
expansion, are right out.

Worse yet, you ask for a "C implementation" that is "guaranteed
18 decimal digits precision", but no C99-conformant compiler is
ever obliged to give you more than 10 decimal digits of precision
for *any* floating-point type. Without going beyond the C standard,
you cannot achieve the desired result at all.

I would suggest none of the newsgroups to which this is posted is
really appropriate, and sci.math.num-analysis is perhaps the right
group.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,145
Messages
2,570,826
Members
47,372
Latest member
LucretiaFo

Latest Threads

Top