Question: 3 variable function problem

good say !

I want for my work to calculate the International Equation of State of Seawater

but when i enter my fonction in mapple: it is like mapple don't recognise the second variable s:

>t:= -> t;
s:= -> s;



> g :=(t, s)-> 999,842594+6,793952*10^(-2)*t-9, 95290*10^(-3)*t^2+1, 1685*10^(-4)*t^3-1, 120083*10^(-6)*t^4+6, 536332*10^(-4)*t^5+8, 24493*10^(-1)*s-4, 899*10^(-3)*t*s+7, 6438*10^(-5)*t^2*s-8, 2467*10^(-7)*t^3*s+5, 3875*10^(-4)*t^4*s-5, 72466*10^(-3)*s^(3/2)+1, 227*10^(-4)*t*s^(3/2)-1, 6546*10^(-6)*t^2*s^(3/2)+4, 8314*10^(-4)*s^2;


to this step all is good but when i want to use this foction i have :

> g;

> g(1, 2);


and the same result if s=1,3,2,4,x


> g(t, x);

      

there is no x in the expression.
it is like mapple don't recognise the second variable . Have you an idea why it don't recognise it ?

What am I doing wrong?




> t := proc (t) options operator, arrow; t end proc; s := proc (s) options operator, arrow; s end proc; t -> t s -> s > g := proc (t, s) options operator, arrow; 999 end proc, 842594+6, 793952*10^(-2)*t-9, 95290*10^(-3)*t^2+1, 1685*10^(-4)*t^3-1, 120083*10^(-6)*t^4+6, 536332*10^(-4)*t^5+8, 24493*10^(-1)*s-4, 899*10^(-3)*t*s+7, 6438*10^(-5)*t^2*s-8, 2467*10^(-7)*t^3*s+5, 3875*10^(-4)*t^4*s-5, 72466*10^(-3)*s^(3/2)+1, 227*10^(-4)*t*s^(3/2)-1, 6546*10^(-6)*t^2*s^(3/2)+4, 8314*10^(-4)*s^2;

Please Wait...