This FAQ pertains mainly to uCalc Fast Math Parser.
Why are Min() and Max() so slow?
These are to be fixed in the next version. Currently they are indeed painfully slow, due to the way they're defined in the include file. To see what's happening run ucExpand("Max(1,2,3,4,5,6,7,8,9,10)") and you'll see that it expands to many nested expressions. Until the next version is released here is a speedy implementation that will work in version 2.96:
// IMPORTANT: Remember to use _stdcall for your uCalc callbacks
void _stdcall MyMaximum(DWORD Expr)
{
   long x;
   double Value, MaxValue;

   MaxValue = ucParam(Expr, 1);

   for(x = 2; x <= ucParamCount(Expr); x++)
   {
      Value = ucParam(Expr, x);
      if (Value > MaxValue) MaxValue = Value;
   }

   ucReturn(Expr, MaxValue);
}

// IMPORTANT: Remember to use _stdcall for your uCalc callbacks
void _stdcall MyMinimum(DWORD Expr)
{
   long x;
   double Value, MinValue;

   MinValue = ucParam(Expr, 1);

   for(x = 2; x <= ucParamCount(Expr); x++)
   {
      Value = ucParam(Expr, x);
      if (Value < MinValue) MinValue = Value;
   }

   ucReturn(Expr, MinValue);
}

ucDefineFunction("Native: Max(x ...)", MyMaximum);
ucDefineFunction("Native: Min(x ...)", MyMinimum);
Why are the help file contents blank?
If you cannot see the contents of the help file, then right click on it (uCalcFMP.chm). Click on the "Unblock" button found under the General tab.
Is there a 64-bit version of uCalc Fast Math Parser?
As of this writing (Jan 2013) there is not yet a 64-bit version. However one is in the works. It's hard to accurately predict how long it will take. However the process involves translating the current PowerBASIC source code into C++, which may perhaps take months.
Is there a version for Linux? Mac OS? Other platform?
The current version runs on Windows only. The same work that is going into developing a 64-bit version of uCalc Fast Math Parser will also help towards making uCalc portable for other platforms. It is hard to accurately predict how low this will take.
Is source code for uCalc products available?
No. Source code for the DLLs or Exe executables is not available to customers. However, uCalc products are designed in a very flexible way that allows advanced customizations.
Can my company pay with a purchase order.
Yes. For purchase orders, select the Amazon ordering option. See Amazon.com Help: Purchase Orders for more details.


Join uCalc on
Twitter
LinkedIn
Facebook
GitHub