# Maths Library

Maths Functions For BC since Activision Didn't Include them, these are so you don't have to come up with your own some of them are hard to w...

File Description

Maths Functions For BC since Activision Didn't Include them, these are so you don't have to come up with your own some of them are hard to work out. This relese includes these functions pow(x,y) finds x^y you can also use sqed(x) x^2 or cbed(x) x^3 root(x,y) finds y¡Ìx you can also use sqrt(x) 2¡Ìx or cbrt(x) 3¡Ìx log(x,y) finds log_y x you can also use ln(x) log_e x or log10(x) log_10 x frac(x) finds x! Trig Functions are: sin(x), cos(x), tan(x) and inverse functions are: Isin(x), Itan(x) Note a r in front is used to for use with radians the format BC uses by default. dtr(x) and rtd(x) convent between degrees and radians and visa verse CheckBits(x,n) returns the state on the nth bit of x SwapBit(x,n) changes the state TurnOnBit(x,n) sets it to 1 TurnOffBit(x,n) sets it to 0 GetBits(x,n1,n2) returns the value in the bits n1 to n2 SetBits(x,n1,n2,y) set the bitsn1 to n2 to the value of y

```Maths Libary Readme

Description
===========
Maths Functions For BC since Activision Didn't Include them, these are so you don't have to come up with your own some of them are hard to work out.
This relese includes these functions
pow(x,y) finds x^y you can also use sqed(x) x^2 or cbed(x) x^3
root(x,y) finds y¡Ìx you can also use sqrt(x) 2¡Ìx or cbrt(x) 3¡Ìx
log(x,y) finds log_y x you can also use ln(x) log_e x or log10(x) log_10 x
frac(x) finds x!
Trig Functions are: sin(x), cos(x), tan(x) and inverse functions are: Isin(x), Itan(x) Note a r in front is used to for use with radians the format BC uses by default. dtr(x) and rtd(x) convent between degrees and radians and visa verse
CheckBits(x,n) returns the state on the nth bit of x
SwapBit(x,n) changes the state
TurnOnBit(x,n) sets it to 1
TurnOffBit(x,n) sets it to 0
GetBits(x,n1,n2) returns the value in the bits n1 to n2
SetBits(x,n1,n2,y) set the bitsn1 to n2 to the value of y

============

The code in this mod may be modified, under the conditions stated in these terms of use.
These conditions are designed to prevent this library becoming unstable or incapability¡¯s arising.
Conditions
I.	You don¡¯t release any of the modified files independently.
II.	If you have written a function, for the library, you will send it to me a glenflet@gmail.com, I¡¯ll then assuming it works correctly, and doesn¡¯t cause any problems, add it to the next release. You must meet the following requirements
a.	New Files, must have a header the same as the files I have include so far, in this you should place your name or BC files user name.
b.	If you add a function to a file, you must add a comment line above it stating ¡°Function Created By <Your Name>¡±
c.	If you edit a file, you must add a comment line directly above the def statement of all functions modified stating ¡°Function Edited By <Your Name>¡±
III.	If you release a mod that use this library, the library installer, must be include not the code, as I have designed the installer to check the existing version if one exists, and only install it it is for a newer one.
¡¤	THIS MATERIAL IS NOT MADE OR SUPPORTED BY ACTIVISION.

LIMITATION ON DAMAGES.  IN NO EVENT WILL ACTIVISION BE LIABLE FOR SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES RESULTING FROM POSSESSION, USE OR MALFUNCTION OF THE PROGRAM OR PROGRAM UTILITIES, INCLUDING DAMAGES TO PROPERTY, LOSS OF GOODWILL, COMPUTER FAILURE OR MALFUNCTION AND, TO THE EXTENT PERMITTED BY LAW, DAMAGES FOR PERSONAL INJURIES, EVEN IF ACTIVISION HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.

¡¤	THIS MATERIAL IS A UNSUPPORTED MODFICATION FOR YOUR SOFTWARE.

THE AUTHOR OF THIS MATERIAL IS IN NO EVENT LIABLE FOR ANY DAMAGE CAUSED BY ITS USE.

IT IS THE INSTALLERS RESPONSIBLITY TO BACKUP YOUR SOFTWARE BEFORE INSTALLING THIS MOD.

IF THIS MOD IS RESTRITUBE IT MUST CONTAIN THIS LICENSE AND THE INCLUDE README

Contact Me
==========
To contact me you can either put a post on the A True Universe Forums or email me at glenflet <AT> gmail <Dot> com```