<?php
require_once('svg_graphics.php');
define("pi",3.14159265358979323846264338327950288419716939937510);
$data = array (
'dimens' => "300x300",
'func' => '100*sin(8*x)',
'step' => pi, //please use pi for polar coordinates
'brush_color' => 'red',
'system' => 'polar', // you can use polar or cartesian
'brush_width' => 0.2
);
$graph = new svg_graph($data);
$graph->render_graph();
?>