Official Everybody Edits Forums

Do you think I could just leave this part blank and it'd be okay? We're just going to replace the whole thing with a header image anyway, right?

You are not logged in.

#1 2016-10-21 15:58:12, last edited by Different55 (2016-10-21 16:00:49)

Different55
Forum Admin
Joined: 2015-02-07
Posts: 16,575

Trig help math people get in here

Okay so I tried brute forcing the problem, that didn't work, so I tried thinking at it, that obviously didn't work, so now it's time to make a topic on the forums.

If I have two sides of a right triangle, x and y, and the hypotenuse is always 1. is it possible to get a value from 0-1 out of that with some magical inverse trig functions? x=1 y=0 should spit out 0, x=0 y=1 should spit out .25, x=-1 y=0 should spit out .5, and x=0 y=-1 should spit out .75. I feel like this is really basic stuff as far as trig goes but eh.

tl;dr: how do I this?


"Sometimes failing a leap of faith is better than inching forward"
- ShinsukeIto

Offline

#2 2016-10-21 16:20:01, last edited by SmittyW (2016-10-21 16:21:09)

SmittyW
Member
Joined: 2015-03-13
Posts: 2,085

Re: Trig help math people get in here

((arccos(x) + arcsin(y))/pi)/2

EDIT: and make sure it's in radians

Offline

Wooted by: (3)
SmittyW1477063201630925

Board footer

Powered by FluxBB

[ Started around 1739071682.3834 - Generated in 0.029 seconds, 12 queries executed - Memory usage: 1.36 MiB (Peak: 1.44 MiB) ]