was fooling around the other day and wrote a script to graph a trig function. i got sine cosine and tangent to work but theres a problem when i try to calculate the other three.
the code that does the calculation for sine is this:
$y = ($a * sin($k * deg2rad($x) + deg2rad($c))) + $h;
the two lines i used to try to calculate cosecant are:
$y = ($a / sin($k * deg2rad($x) + deg2rad($c))) + $h;
$y = ($a * 1/sin($k * deg2rad($x) + deg2rad($c))) + $h;
equations are in the form y = Asin(Kx + c) + h
i dont get any parse errors but when i try to run the script using csc sec or cot the image doesnt display.
any ideas or input would be appreciated