{"issue":{"state":"open","pull_request":{"diff_url":null,"html_url":null,"patch_url":null},"milestone":null,"user":{"avatar_url":"https://secure.gravatar.com/avatar/cabede4267eae1813266a38fb5e9f0e2?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"cabede4267eae1813266a38fb5e9f0e2","url":"https://api.github.com/users/dabayliss","login":"dabayliss","id":954376},"assignee":{"avatar_url":"https://secure.gravatar.com/avatar/402dddc31c0e131326457e9ffd436352?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"402dddc31c0e131326457e9ffd436352","url":"https://api.github.com/users/ghalliday","login":"ghalliday","id":902490},"updated_at":"2011-11-16T13:59:02Z","labels":[],"closed_at":null,"comments":1,"url":"https://api.github.com/repos/hpcc-systems/HPCC-Platform/issues/986","body":"Obviously ML will be handling a lot of the 'heavy' math side of HPCC - for now I have put these two into our Utils sub-module - but they strike me as rather more 'standard' library than 'machine learning' :\r\n\r\nEXPORT Pi := 3.1415926535897932384626433;\r\n\r\nEXPORT REAL8 Fac(UNSIGNED2 i) := BEGINC++\r\n  double accum = 1.0;\r\n\tfor ( int j = 2; j <= i; j++ )\r\n\t\taccum *= (double)j;\r\n\treturn accum;\r\n  ENDC++;\r\n\r\n","html_url":"https://github.com/hpcc-systems/HPCC-Platform/issues/986","title":"Standard HPCC Math library","number":986,"id":2247706,"created_at":"2011-11-15T18:58:57Z"},"action":"created","comment":{"user":{"avatar_url":"https://secure.gravatar.com/avatar/cabede4267eae1813266a38fb5e9f0e2?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"cabede4267eae1813266a38fb5e9f0e2","url":"https://api.github.com/users/dabayliss","login":"dabayliss","id":954376},"updated_at":"2011-11-16T13:59:02Z","url":"https://api.github.com/repos/hpcc-systems/HPCC-Platform/issues/comments/2759631","body":"There is also DoubleFac:\r\n// The 'double' factorial is defined for ODD n and is the product of all the odd numbers up to and including that number\r\n// We are extending the meaning to even numbers to mean the product of the even numbers up to and including that number\r\n// Thus DoubleFac(8) = 8*6*4*2\r\nEXPORT REAL8 DoubleFac(UNSIGNED2 i) := BEGINC++\r\n  double accum = (double)i;\r\n\tfor ( int j = i-2; j > 1; j -= 2 )\r\n\t\taccum *= (double)j;\r\n\treturn accum;\r\n  ENDC++;\r\n","id":2759631,"created_at":"2011-11-16T13:59:02Z"}}