Skip to content

Releases: fsegaud/Hef.Math.Interpreter

1.1.1

02 Nov 13:40
Compare
Choose a tag to compare

Changelog

Fixed

  • An interpreter context can now be replaced by another one with the same name.

1.1.0

11 Sep 15:00
Compare
Choose a tag to compare

Changelog

Added

  • Added global variables support (variables that are common to all instances of Interpreter).
  • Implemented the disposal code (#24).
  • Added an console calculator example project (#25).

Changed

  • The number of cached nodes is now limited to 64. (#21).

Fixed

  • The regular expression that matches context variables now behaves as intended (#23).
  • Setting an existing variable no longer raises an exception (#27).

1.0.0

03 Sep 20:13
Compare
Choose a tag to compare

Changelog

Added

  • Added binary operators <<, >>, & and |.
  • Added comparison operator != (with alias ne).
  • Added new operators floor, ceil, trunc.
  • Added new operators e, log, log10.
  • Added aliases to existing operators <, <=, > and >=.

Changed

  • Operators priority is now from lowest (0) to highest (int.Max);
  • Formula syntax: Alphanumeric operators should now be separated from operants by a blanck space or brackets (e.g.: e2 should be written e 2 or e(2)).

Removed

  • Removed some deprecated operation aliases (degrad and raddeg).
  • Removed some deprecated functions related to unnamed contexts :
    • Constructor Interpreter(IInterpreterContext).
    • Function SetContext(IInterpreterContext).

Fixed

  • Operators that contain digits in their names no longer fail (e.g.: deg2rad).
  • Fixed an issue related to mixed operators (i.e.: ! was mixed to !=).

0.2.0-alpha

29 Aug 09:48
Compare
Choose a tag to compare
0.2.0-alpha Pre-release
Pre-release

Changelog

Added

  • The interpreter now handles the use of multiple contexts (identified by name).
  • Some operators now accept a function-style writer (eg. min(1, 2) instead of `min 1
  • Copies of all previously prcessed formulae are now kept in cache (optimization).

Changed

  • Operations and values are now stored a tree (optimization).

Fixed

  • Fixed precedence issues related to | and & boolean operations.

0.1.1-alpha

22 Aug 08:38
Compare
Choose a tag to compare
0.1.1-alpha Pre-release
Pre-release

Changelog

  • Added new operations : tan, cosh, sinh, tanh, acos, asin, atan, deg2rad, rad2deg, and, or, &, |.
  • Added new constants : true, false.

0.1.0-alpha

20 Aug 18:54
Compare
Choose a tag to compare
0.1.0-alpha Pre-release
Pre-release

First alpha version.
NuGet package available at https://www.nuget.org/packages/Hef.Math.Interpreter/0.1.0-alpha.