I am using Maple + MySql and can execute queries like this:
sql:=sprintf("SELECT n FROM centers WHERE ABS(%s)<%a ", ss, nZero ):
Problems arise when ee contains `^` operator, because MySql does not understand this operator, but the function POWER() , ie, in MySql x^y must be written as POWER(x,y).
must be rewritten as:
before converting to string and quering.
> POWER := proc (x, y) return x^y end proc;
> applyrule(X::algebraic^Y::algebraic = POWER(X, Y), ee);
but it seems tha evaluation of POWER has to be delayed in some way.
Thanks in advance