Functions Available: pow(x,y) finds x^y you can also use sqed(x) or cbed(x) root(x,y) y finds y√x you can also use sqrt(x) or cbrt(x) log(x,y) finds log_y x you can also use ln(x) or log10(x) frac(x) finds x! Trig Functions are: sin(x), cos(x), tan(x) and inverse functions are: Isin(x), Icos(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

ChangesVersion 1.1 - The pow(x,y) command now attempts the build in function, which I found out about, if it fails, it uses my version, this will improve speed, for people how BC has the function working. I’m leaving my one in until, I can be absolute sure of why I’ve had errors when try to use the build in function in the past. - Add support for inverse tan the command is Itan(x), and rItan(x), which I had been able to work out when I made the previous release.

Maths Library 1.1 for Bridge Commander Readme Created by Glen Fletcher (glenflet) Functions Available pow(x,y) finds you can also use sqed(x) or cbed(x) root(x,y) finds you can also use sqrt(x) or cbrt(x) log(x,y) finds you can also use ln(x) or log10(x) frac(x) finds Trig Functions are: sin(x), cos(x), tan(x) and inverse functions are: Isin(x), Icos(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 Constants pi is π e is exp(1) d is the number of radians in 1° r is the number of degrees in 1 radian Terms of Use 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 POSSIBILITYOF 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 Changes Version 1.1 • The pow(x,b) command now attempts the build in function, which I found out about, if it fails, it uses my version, this will improve speed, for people how BC has the function working. I’m leaving my one in until, I can be absolute sure of why I’ve had errors when try to use the build in function in the past. • Add support for inverse tan the command is Itan(x), and rItan(x), which I had been able to work out when I made the previous release. Contact Me To contact me you can either put a post on the A True Universe Forums or email me at glenflet@gmail.com

There are no comments yet. Be the first!