-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

On 03/05/2014 11:36 AM, Erich Steinböck wrote:
> s = -s *, (6*n) * (6*n-1) * (6*n-2) * (6*n-3) * (6*n-4) * (6*n-5), 
> /, ((3*n) * (3*n-1) * (3*n-2) * n * n * n * k3_power3) t = t + s *
> (k1 + n*k2)
[...]

> Still, to get decent performance, you will have to use the gmp
> library (above article shows that for the Python implmentation).
> Unfortunately ooRexx doesn't yet have an interface to gmp - one of
> my really long-time wishes ..
> 
> Erich

gmp would be the right thing to chose for doing arbitrary-precision
calculations. Rexx is nice with the numeric digits settings, but it's
not very optimized. Also, you can optimize the instruction yourself to
some extent: extract common sub-expressions (e.g. 6*n) to avoid them
being evaluated more often than necessary. ooRexx does not perform any
rewriting of the program, so it's all executed as written by the
programmer.

Using gmp with c++ is more convenient as it supports operator
overloading. Using gmp with cgal is even more fun!
http://doc.cgal.org/latest/Manual/ (It has nice c++ wrappers for gmp)

Moritz

- -- 
  Moritz Hoffmann
  http://antiguru.de/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
Comment: Using GnuPG with Icedove - http://www.enigmail.net/

iF4EAREIAAYFAlMXA/UACgkQ264ap80Va8eEtAD9EUKN/wrsazIw+oZnEJVv0z5G
ng3XjVALnW17nPUnIaQA/36JDTTxUJlO8fsGxg6zTMgEhEByCLdaho0+kmnIVKIt
=9hQ2
-----END PGP SIGNATURE-----

------------------------------------------------------------------------------
Subversion Kills Productivity. Get off Subversion & Make the Move to Perforce.
With Perforce, you get hassle-free workflows. Merge that actually works. 
Faster operations. Version large binaries.  Built-in WAN optimization and the
freedom to use Git, Perforce or both. Make the move to Perforce.
http://pubads.g.doubleclick.net/gampad/clk?id=122218951&iu=/4140/ostg.clktrk
_______________________________________________
Oorexx-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/oorexx-users

Reply via email to