How exactly do I return the values correctly do the output function? I've tried a few different ways but I either get a QNAN as an output, or random numbers. Maybe it's my math, or maybe it's the way I've tried returning it, either way, I'm not sure. Any help is appreciated like always!
http://pastebin.org/27041
http://pastebin.org/27041