"That says: you may want to test before asking."
different results, are they? So what constant are you talking about?
And of course function result expect to be constant. Otherwise what sense to test it to evalhf?
MainF(_x, _y, _z) one gets "Error, invalid input: MainF expects
its 1st argument, u, to be of type float, but received _x"
Of course, what else do you expect from fuction with directly typed arguments that also call a pair of other COMPILED functions with float arguments.
"As already said: first ensure that the basic Maple code..."
This is a basic. Step left, step right - bullet in head. That's maple for me now.
Anyway i simplified as much as possible to do it at least worked. It includes:
1) RationalToFloat accordingly that issue with which i faced too.
2) Typizations of parameters after completly lost of them types after optimize call accordingly to branch annswer to your question in same link.
So, please, consider question more deeply because i will not overcome it by myself, maple really kills me :(
Attach : ex.mw