View Single Post
  #1  
Old 03-17-2008, 12:08 AM
Chompy Chompy is offline
¯\(º_o)/¯
Chompy's Avatar
Join Date: Sep 2006
Location: Norway
Posts: 2,815
Chompy is just really niceChompy is just really niceChompy is just really nice
Send a message via MSN to Chompy
Simple trig functions

I've always thought it was weird that, graal has sin, cos and arctan, but not tan?

Anyways,

PHP Code:
function tan(a) {
  return 
sin(a)/cos(a);
}
function 
cot(a) {
  return 
1/tan(a);
}
function 
csc(a) {
  return 
1/sin(a);
}
function 
sec(a) {
  return 
1/cos(a);

As I said, simple functions, and it would be nice if they were put into as built-in functions and not in a lonely class
__________________
Reply With Quote