Since two days we struggle with a function phi(x,m,s).
It seems impossible to fix m and s to some value and to use functiongraph since function graph works with the variable implicitely defined (without reference to the variable). In the case of the Laplace-Gauss density function we have tried
class fct_phi {
constructor(s,m) {
this.m=m;
this.s=s;
}
phi(x) {
return (1/(Math.pow(2*Math.PI,1/2)*this.s))*Math.pow(Math.exp(1),-(1/2)*Math.pow((x-this.m)/this.s,2));
}
};
f=new fct_phi(1,0);
board.create('functiongraph',[f.phi,-1,1],{strokeColor:"red"});
but obviously it doesn't display any thing sinece the function is not evaluated.