%% $Id: mathclient.erl,v 1.2 2013/04/05 21:01:30 leavens Exp leavens $ -module(mathclient). -export([compute/3]). % compute, by using the math server P, the composition of the functions Funs % as applied to the value Val. -spec compute(pid(), [mathserver:mathfunname()], float()) -> float(). compute(P,Funs,Val) -> P!{self(),compute,Funs,Val}, receive {ok,Res} -> Res end.