|
HiveMind
|
Provides math function for the standard lib provided with the vm see IBittyBuzzLib. In the buzz code, the functions are situated in the math namespace. More...
Functions | |
| void | abs () |
| Calculates the absolute value Signature abs(arg1) More... | |
| void | floori () |
| Floor a value Signature floori(arg1) More... | |
| void | floorf () |
| Floor a value Signature floorf(arg1) More... | |
| void | ceili () |
| Ceil a value Signature ceili(arg1) More... | |
| void | ceilf () |
| Ceil a value Signature ceilf(arg1) More... | |
| void | roundi () |
| Rounds a value Signature roundi(arg1) More... | |
| void | roundf () |
| Rounds a value Signature roundf(arg1) More... | |
| void | log () |
| Calculates the natural logarithm (ln) Signature log(arg1) More... | |
| void | log2 () |
| Calculates the logarithm base 2 Signature log2(arg1) More... | |
| void | log10 () |
| Calculates the logarithm base 10 Signature log10(arg1) More... | |
| void | pow () |
| Calculates the base raised to the power of the exponent. Signature pow(base, exponent) More... | |
| void | exp () |
| Calculates e^x Signature exp(x) More... | |
| void | sqrt () |
| Calculates the square root Signature sqrt(arg1) More... | |
| void | sin () |
| Calculates the sine Signature sin(arg1) More... | |
| void | cos () |
| Calculates the cosine Signature cos(arg1) More... | |
| void | tan () |
| Calculates the tengent Signature tan(arg1) More... | |
| void | asin () |
| Calculates the arc sine Signature asin(arg1) More... | |
| void | acos () |
| Calculates the arc cosine Signature acos(arg1) More... | |
| void | atan () |
| Calculates the arc cosine Signature atan(arg1) More... | |
| void | min () |
| Return the min Signature min(arg1, arg2) More... | |
| void | max () |
| Return the max Signature max(arg1, arg2) More... | |
| void | rng_uniform () |
| Return a number with a uniform distribution Signature rng_uniform() More... | |
Variables | |
| const float | E = Math::e |
| The euleur number as a constant note that since buzz approximates ln(e) may not equal 1. More... | |
| const float | PI = Math::pi |
| The value of PI as a constant note that since it approximates cos(pi) may not equal 0. More... | |
Provides math function for the standard lib provided with the vm see IBittyBuzzLib. In the buzz code, the functions are situated in the math namespace.
| void BittyBuzzMathFunctions::abs | ( | ) |
Calculates the absolute value Signature abs(arg1)
expect one argument


| void BittyBuzzMathFunctions::acos | ( | ) |
Calculates the arc cosine Signature acos(arg1)
expect one argument


| void BittyBuzzMathFunctions::asin | ( | ) |
Calculates the arc sine Signature asin(arg1)
expect one argument


| void BittyBuzzMathFunctions::atan | ( | ) |
Calculates the arc cosine Signature atan(arg1)
expect two arguments


| void BittyBuzzMathFunctions::ceilf | ( | ) |
Ceil a value Signature ceilf(arg1)
expect one argument


| void BittyBuzzMathFunctions::ceili | ( | ) |
Ceil a value Signature ceili(arg1)
expect one argument


| void BittyBuzzMathFunctions::cos | ( | ) |
Calculates the cosine Signature cos(arg1)
expect one argument


| void BittyBuzzMathFunctions::exp | ( | ) |
Calculates e^x Signature exp(x)
expect one argument


| void BittyBuzzMathFunctions::floorf | ( | ) |
Floor a value Signature floorf(arg1)
expect one argument


| void BittyBuzzMathFunctions::floori | ( | ) |
Floor a value Signature floori(arg1)
expect one argument


| void BittyBuzzMathFunctions::log | ( | ) |
Calculates the natural logarithm (ln) Signature log(arg1)
expect one argument


| void BittyBuzzMathFunctions::log10 | ( | ) |
Calculates the logarithm base 10 Signature log10(arg1)
expect one argument


| void BittyBuzzMathFunctions::log2 | ( | ) |
Calculates the logarithm base 2 Signature log2(arg1)
expect one argument


| void BittyBuzzMathFunctions::max | ( | ) |
Return the max Signature max(arg1, arg2)
expect two arguments


| void BittyBuzzMathFunctions::min | ( | ) |
Return the min Signature min(arg1, arg2)
expect two arguments


| void BittyBuzzMathFunctions::pow | ( | ) |
Calculates the base raised to the power of the exponent. Signature pow(base, exponent)
expect two argument


| void BittyBuzzMathFunctions::rng_uniform | ( | ) |
Return a number with a uniform distribution Signature rng_uniform()
expects no arguments returns a random number, follows a uniform distribution


| void BittyBuzzMathFunctions::roundf | ( | ) |
Rounds a value Signature roundf(arg1)
expect one argument


| void BittyBuzzMathFunctions::roundi | ( | ) |
Rounds a value Signature roundi(arg1)
expect one argument


| void BittyBuzzMathFunctions::sin | ( | ) |
Calculates the sine Signature sin(arg1)
expect one argument


| void BittyBuzzMathFunctions::sqrt | ( | ) |
Calculates the square root Signature sqrt(arg1)
expect one argument


| void BittyBuzzMathFunctions::tan | ( | ) |
Calculates the tengent Signature tan(arg1)
expect one argument


| const float BittyBuzzMathFunctions::E = Math::e |
The euleur number as a constant note that since buzz approximates ln(e) may not equal 1.
| const float BittyBuzzMathFunctions::PI = Math::pi |
The value of PI as a constant note that since it approximates cos(pi) may not equal 0.
1.8.17