JMDash Math
Syntax & Examples
// mth.sqrt{} Stands for 'Math.SquareRoot'
// Used to calculate and store the square root of a variable
// Syntax (spaced): mth.sqrt{ << <outputVariable> << <inputVariable> };
#incd .jmath
int outputInt; int inputInt;
mth.sqrt{<< outputInt << inputInt};// mth.log{} Stands for 'Math.Logarithm'
// Used to calculate and store the natural logarithm of a variable
// Syntax (spaced): mth.log{ << <outputVariable> << <inputVariable> };
#incd .jmath
int outputInt; int inputInt;
mth.log{<< outputInt << inputInt};// mth.pwr{} Stands for 'Math.Power'
// Used to calculate and store the power of a variable based on another variable
// Syntax (spaced): mth.pwr{ << <outputVar> << <secInputVar> << <firInputVar>};
#incd .jmath
int outputVar; int firInputVar; int secInputVar;
mth.pwr{<< outputVar << secInputVar << firInputVar};Last updated