ID:135998
 
Can you guy's throw in tan() and arctan() to BYOND v4.0? I know that we can make do with cos() and sin(), but I really find this annoying since I write things out in my head and have to work around them when I put it on screen.
Can you guy's throw in tan() and arctan() to BYOND v4.0? I know that we can make do with cos() and sin(), but I really find this annoying since I write things out in my head and have to work around them when I put it on screen.

You can just search the forums :P. For arctan() There are already a few implementations in vairous posts. tan() is simple enough just cos()/sin().
In response to Theodis (#1)
Theodis wrote:
You can just search the forums :P. For arctan() There are already a few implementations in vairous posts. tan() is simple enough just cos()/sin().

Yeah, I got a good arctan() from something Lummox JR posted, I also made my own tan(). It's still something that should be included.
In response to Theodis (#1)
Theodis wrote:
Can you guy's throw in tan() and arctan() to BYOND v4.0? I know that we can make do with cos() and sin(), but I really find this annoying since I write things out in my head and have to work around them when I put it on screen.

You can just search the forums :P. For arctan() There are already a few implementations in vairous posts. tan() is simple enough just cos()/sin().

Ahem--that's cotangent. Tangent is sin()/cos().

Lummox JR
In response to Lummox JR (#3)
You can just search the forums :P. For arctan() There are already a few implementations in vairous posts. tan() is simple enough just cos()/sin().

Ahem--that's cotangent. Tangent is sin()/cos().

Well, at least you cot() his slip.
In response to Spuzzum (#4)
Spuzzum wrote:
Well, at least you cot() his slip.

Whoa, that's one of the worst trig puns I've ever seen. You should sec() help.

Lummox JR
In response to Lummox JR (#5)
tan = sine/cosine
cotan = cosine/sine
arcfunctions are easy, they're 1/function (or is that inverse, or are arc and inverse the same?) or it might be arcfunction = function ^ -1? hell i barely remember trig, but thats what reference tables are for.

all that really matters is that you can form all of the trigonometric functions using the two provided and simple algebra.
In response to EzrahChan (#6)
The arcfunction is the inverse, but neither is 1/function.

csc(x) = 1/sin(x)
sec(x) = 1/cos(x)
cot(x) = 1/tan(x) = cos(x)/sin(x)

Lummox JR
In response to Lummox JR (#7)
Lummox JR wrote:
The arcfunction is the inverse, but neither is 1/function.

csc(x) = 1/sin(x)
sec(x) = 1/cos(x)
cot(x) = 1/tan(x) = cos(x)/sin(x)

And, of course, people have to watch out for the cases where those functions become undefined.