Raised This Month: $51 Target: $400
 12% 

Equation Help


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
hornet
AMX Mod X Plugin Approver
Join Date: Mar 2010
Location: Australia
Old 02-08-2012 , 08:23   Equation Help
Reply With Quote #1

Hey, I know my Trigonometry quite well, but I don't know how to use it in AMXX.

I was wondering how you do the inverse functions for Sin Cos Tan.
I want to do:
PHP Code:
flValue cos-1
...but I have no idea how to do this in AMXX.

Can anyone help me?

Thanks!

EDIT: SOLVED.

I found that the AMXX function for the inverse op is called "arccos" ... floatacos()
__________________
Quote:
vBulletin Tip #42: Not much would be accomplished by merging this item with itself.

Last edited by hornet; 02-08-2012 at 09:06.
hornet is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 02-09-2012 , 02:00   Re: Equation Help
Reply With Quote #2

arccos() and arcsin() or acos() and asin() are common names for inverse trig functions in code. Inverse trig functions that are shown with the -1 is horrible notation IMO, I don't understand why anybody uses it.
__________________
fysiks is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 06:01.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode