Difference between revisions of "Math Script"

213 bytes added ,  20:06, 18 January 2021
no edit summary
imported>Qazaaq
(Added F4SE member)
imported>Google5
 
(2 intermediate revisions by 2 users not shown)
Line 3: Line 3:
[[Category:Script Objects]]
[[Category:Script Objects]]


Collection of generic math-related global functions
Collection of generic math-related global functions.


== Definition ==
== Definition ==
Line 46: Line 46:


== F4SE Global Functions ==
== F4SE Global Functions ==
*float Function [[Exp - Math|Exp]](float arg1)
**Computes the value of e raised to arg1.
*int Function [[LeftShift - Math|LeftShift]](int value, int shiftBy)
*int Function [[LeftShift - Math|LeftShift]](int value, int shiftBy)
**Shifts value left by n number of bits.
**Computes a bitwise left shift of value by shiftBy number of bits.
*int Function [[RightShift - Math|RightShift]](int value, int shiftBy)
*float Function [[Log - Math|Log]](float arg1)
**Shifts value right by n number of bits.
**Computes the natural logarithm of a arg1.
*int Function [[LogicalAnd - Math|LogicalAnd]](int arg1, int arg2)
*int Function [[LogicalAnd - Math|LogicalAnd]](int arg1, int arg2)
**ANDs arg1 with arg2.
**Computes the bitwise AND of arg1 with arg2.
*int Function [[LogicalNot - Math|LogicalNot]](int arg1)
**Computes the bitwise NOT of arg1.
*int Function [[LogicalOr - Math|LogicalOr]](int arg1, int arg2)
*int Function [[LogicalOr - Math|LogicalOr]](int arg1, int arg2)
**ORs arg1 with arg2.
**Computes the bitwise OR of arg1 with arg2.
*int Function [[LogicalXor - Math|LogicalXor]](int arg1, int arg2)
*int Function [[LogicalXor - Math|LogicalXor]](int arg1, int arg2)
**Exclusive ORs arg1 with arg2.
**Computes the bitwise XOR of arg1 and arg2.
*int Function [[LogicalNot - Math|LogicalNot]](int arg1)
*int Function [[RightShift - Math|RightShift]](int value, int shiftBy)
**Inverts arg1's bits.
**Computes a bitwise right shift of value by shiftBy number of bits.
*float Function [[Log - Math|Log]](float arg1)
**Returns the logarithm of a specified number.


== Member Functions ==
== Member Functions ==
Anonymous user