topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • Monday December 9, 2024, 11:24 am
  • Proudly celebrating 15+ years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Author Topic: uCalc Free Math Parser 2.9 is now available  (Read 7746 times)

Daniel Corbier

  • Participant
  • Joined in 2007
  • *
  • default avatar
  • Posts: 7
    • View Profile
    • Donate to Member
uCalc Free Math Parser 2.9 is now available
« on: June 01, 2007, 04:33 PM »
It's Official: uCalc FMP 2.9 is now available - and it's free.

It's been many years in the making, but uCalc Free Math Parser 2.9 is finally officially released today, June 1, 2007.

uCalc FMP allows your program to evaluate expressions defined at runtime.  For more details, please visit www.ucalc.com/ucalcfmp.html .

uCalc Free Math Parser 2.9 replaces uCalc Fast Math Parser 2.0.  As of today, support for version 2.0 is officially discontinued.  If you are a version 2.0 user, please be sure to read the help file topic entitled Upgrading Issues.

As the name implies, uCalc Free Math Parser is now free.  You may use it in your commercial, educational, or private projects.  You may distribute the uCalc DLLs with your products on as many computers as required.  There is no royalty fee.  Be sure to read the License topic in the help file for more details.

Although the free license does not entitle you to technical support, you are encouraged to ask questions and send feedback.  You might get a response, even if it's on a lower priority level.

uCalc FMP now refers to both uCalc Free Math Parser, and uCalc Fast Math Parser (commercial license).  The free license imposes a limit on the number of items you can define.  And certain advanced features (none of which were available in version 2.0), as well as full technical support, are reserved for commercial licensees of uCalc Fast Math Parser.

There is just one file to download.  By default uCalc FMP is in a demo license mode.  The help file's free license topic gives you the code to remove the message box that comes up in the demo mode.  And if you purchase a commercial license, you get a serial number that unlocks features reserved for the commercial license.  All users are encouraged to start with the free license, after having played with the demo.  In many cases the free license will be all that you need.  If you use uCalc more heavily, then soon enough you'll know whether you need to purchase a commercial license, as you will find a special message box that comes up whenever you have reached the limits of the free license.

Here is a partial list of new features.  These are relevant mainly in the context of moving from 2.0 to 2.9.  A host of other new features, which are not mentioned here, are found in the uCalc Language Builder (available separately; although it shares the same DLLs as FMP).
  • The IIF() function evaluates either the True argument or the False argument, depending on the value of the Condition argument, but not both, unlike version 2.0 which always evaluated both.
  • You can define callback functions similar to IIF() such that arguments passed ByExpr (as opposed to ByRef or ByVal) are not evaluated ahead of time.  This was not possible in version 2.0.
  • It is no longer necessary to set up definition space boundaries ahead of time.  Memory is gradually allocated as needed.  You won't need ucReset (though you can release an entire thread using ucReleaseItem), and you won't have to worry about running out of definition space (assuming you don't intentionally, or inadvertently devise a way to consume all your gigs of memory).  And there is no maximum number of arguments per function.
  • FMP 2.0 only allowed you to define infix (binary) operators.  Now you can also define prefix and postfix operators as well.  See DemoDefs.Txt for examples.
  • FMP 2.0 operator definitions didn't allow you to set individual precedence levels for each operator, as you can do now.  See DemoDefs.Txt for examples.
  • Case sensitivity can be turned on or off.  (It's off by default).
  • User-friendly form-based demos for PowerBASIC, Borland C++ Builder, VC++, and VB.NET are now included.  (VB classic, and Delphi already had form-based demos).
  • Support for VB.NET was added.
  • Speed. The new uCalc should be much faster, both in terms of parsing speed, and in evaluation speed.  The difference in speed may range from barely noticeable to very dramatic, depending on what you are doing, how you choose to implement things, and in some cases which compiler you are using.  By default, compilers that have native support for 80-bit precision can benefit the most in numeric calculations.  Compilers that support pointers can create callbacks that use uCalc's NativeCall for more efficiency.
  • You can attach a uCalc variable to the address of a variable defined in your source code.  See the source code for the Plotting, and Sum examples in the demo files (excluding VB.NET).
  • Specific data types (Single, Double, Long, String, WideString, LPCSTR, etc...) are supported, replacing generic numeric and string types.
  • There is no longer a problem with using ucEval or ucEvalStr in your callbacks.
  • Function overloading is supported.
  • Function bootstrapping is supported.
  • Function recursion is supported.
  • More function definition flexibility is supported.
  • Multi-threading is supported.
  • Overall syntax was simplified.
  • The FPU word of the host program and uCalc's FPU word are insulated from each other.
  • FPU errors such as Overflow, Underflow, Division-by-0, etc... can be caught, or masked.
  • uCalc() is a function that encapsulates all of uCalc's functionality.  This function can be made available even to the end-user.

Please visit the download page at www.ucalc.com/download.html  to obtain the file.

Visit the uCalc home page at www.ucalc.com


------------------
Daniel Corbier
uCalc FMP author

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,913
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Read more about this member.
    • Donate to Member
Re: uCalc Free Math Parser 2.9 is now available
« Reply #1 on: June 01, 2007, 04:45 PM »
cool. and welcome to the site daniel  :up:
i might just give this a try -- i like the samples.

the only thing that would scare me off a little is that the full version is too expensive for me to ever buy, and i'm reluctant to become dependent on a tool and then not have a viable upgrade path.

lukaszwrobel.pl

  • Participant
  • Joined in 2008
  • *
  • default avatar
  • Posts: 1
    • View Profile
    • Donate to Member
Re: uCalc Free Math Parser 2.9 is now available
« Reply #2 on: November 27, 2008, 03:55 PM »
In case anyone was looking for information about writing a simple math parser, perhaps my blog posts would turn out to be useful. They cover the introduction to writing a parser, some basic knowledge about grammars, sample implementation written in Ruby and a test suite.

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,913
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Read more about this member.
    • Donate to Member
Re: uCalc Free Math Parser 2.9 is now available
« Reply #3 on: November 27, 2008, 05:17 PM »
Very nice Lukasz  :up:
Welcome to the site.

Ralf Maximus

  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 927
    • View Profile
    • Read more about this member.
    • Donate to Member
Re: uCalc Free Math Parser 2.9 is now available
« Reply #4 on: November 27, 2008, 07:03 PM »
This is incredibly cool!

I can easily see the free version of uCalc replacing the vbs functionality I've implemented in one of my apps, just because I needed to evaluate user-entered formulas.  I'll have to play with the demo and see how easy it will be to implement.

If I can kiss the scripting engine goodbye, it'll definitely be worth it!