setInterval(0.1); $function = new MathFunction('cos'); $plot->add($function); $graph->add($plot); $graph->draw(); ?>