Pre-processing large mathematical expressions for gmp?
cloos at jhcloos.com
Tue Jun 15 18:33:00 CEST 2010
>>>>> "JS" == Jim Skea <jimskea at gmail.com> writes:
JS> Does anyone know of a pre-processor that would take a long mathematical
JS> expression and convert it into the equivalent set of gmp function calls,
JS> creating any temporary variables as necessary?
Google for 'infix to rpn'. Some of the hits are:
The only significant difference from strict postfix notation will be
that you'll need temp vars instead of a stack; essentially the same
problem as converting from a stack to a register file.
James Cloos <cloos at jhcloos.com> OpenPGP: 1024D/ED7DAEA6
More information about the gmp-discuss