|
|
> if I remember right, tan()/sin() is cos()...
As others have pointed out, it's actually 1/cos(), or sec().
(sin()/cos())/sin() = sin()/(cos()*sin()) = 1/cos())
Now, even if you had correctly used sin()/tan(), you would have still had
problems at the points where tan() is zero (since division by zero is
undefined) and where it's undefined (at pi/2 + n*pi). Every other point
would have turned out correct, but you probably would have had errors
nonetheless.
- Slime
[ http://www.slimeland.com/ ]
Post a reply to this message
|
|