////////// // // Function: EXP() // Returns the value of e^x where x is a specified numeric expression. // ////// // Version 0.58 // Last update: // Mar.15.2015 ////// // Change log: // Mar.15.2015 - Initial creation by Stefano D'Amico ////// // Parameters: // p1 -- Numeric or floating point // ////// // Returns: // EXP(n) of the value in p1 ////// // Example: // ? EXP(2) && Display 7.39 ////// void function_exp(SReturnsParams* rpar) { SVariable* varNumber = rpar->ip[0]; // Return exp ifunction_numbers_common(rpar, varNumber, NULL, NULL, _FP_COMMON_EXP, _VAR_TYPE_F64, false, false); }
////////// // // Function: LOG10() // Returns the common logarithm (base 10) of the specified numeric expression. // ////// // Version 0.57 // Last update: // Mar.15.2015 ////// // Change log: // Mar.15.2015 - Initial creation by Stefano D'Amico ////// // Parameters: // p1 -- Numeric or floating point // ////// // Returns: // LOG10(n) of the value in p1 ////// // Example: // ? LOG10(2) && Display 0.30 ////// void function_log10(SThisCode* thisCode, SFunctionParms* rpar) { SVariable* varNumber = rpar->params[0]; // Return log10 ifunction_numbers_common(thisCode, rpar, varNumber, NULL, NULL, _FP_COMMON_LOG10, _VAR_TYPE_F64, false, false); }