Ticket #5203: precise_pi_and_e.patch

File precise_pi_and_e.patch, 605 bytes (added by jscipione, 12 years ago)

This patch increases the precision of pi and e using the MAPM library

  • src/kits/shared/ExpressionParser.cpp

     
    565565ExpressionParser::_ParseFunction(const Token& token)
    566566{
    567567    if (strcasecmp("e", token.string.String()) == 0)
    568         return MAPM(M_E);
     568        return MAPM(MM_E);
    569569    else if (strcasecmp("pi", token.string.String()) == 0)
    570         return MAPM(M_PI);
     570        return MAPM(MM_PI);
    571571
    572572    // hard coded cases for different count of arguments
    573573    // supports functions with 3 arguments at most