Google Classroom
GeoGebraGeoGebra Classroom

ggbApplet.evalCommandCAS()

Example

ggbApplet.evalCommandCAS("f(x):=x^4-1"); var sol=ggbApplet.evalCommandCAS("CSolutions[f]"); alert("The solution of the equation x^4-1=0 is "+sol+"."); alert("The type of sol is "+typeof sol+"."); var ary=sol.substring(1, sol.length-1).split(', '); alert(ary); alert("The type of ary is "+typeof ary+"."); for (var i in ary) { alert("ary[" + i + "]=" + ary[i]); }