Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   Code Gallery (https://forums.graalonline.com/forums/forumdisplay.php?f=179)
-   -   Simple trig functions (https://forums.graalonline.com/forums/showthread.php?t=79052)

Chompy 03-17-2008 12:08 AM

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 :cry:

DrakilorP2P 03-17-2008 12:21 AM

Wasn't there a tangent function in GS1?

Tolnaftate2004 03-17-2008 01:50 AM

Quote:

Originally Posted by Chompy (Post 1380103)
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 :cry:

I can't think of many applications for these.


All times are GMT +2. The time now is 12:24 AM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.