[GiNaC-list] Symbolic functions with multiple outputs

Chris Dams C.Dams at science.ru.nl
Thu Sep 8 11:26:59 CEST 2005

Dear John,

On Thu, 8 Sep 2005, John Pye wrote:

> >In the list case, perhaps what you really would want to have is a
> >symbolic function water_variables(p,h) that does not evalutate further
> >but can be used to hold pressure and enthalpy as results.
> Sorry, I don't understand what you mean here?


ex f=water_variables(p,h);

> By evaluating these at the same time in my final numerical evaluation
> stage, I can optimise a bit on the evaluation of the power series which
> is used to provide the steam properties I'm using, see
> http://pye.dyndns.org/freesteam/

In the case with the water_variables function you could supply your own
function for the numerical evalutation of such a function and you could
use your optimisations.

Best wishes,

More information about the GiNaC-list mailing list