Added a basic math library (sin/cos/tan/asin/acos/atan/pow/pi), added a LinkConstFloatp() to interpreter.c function that *gasp* links floats into the namespace (used for adding PI in), and added an math example (bin/examples/math.txt) to demonstrate the math library.
Removed an a test const from namespace math, looks like I also forgot to save interpreter.c on last check-in. This commit could probably be squashed with the last one. :/
Added most of the basic functions one might need to the math library.
Removed a reference to a test object.
Updated the header file to reflect all of the new added functions, and changed the argument for most math function from the generic 'input' to a slightly more descriptive 'num'.
Merge branch 'master' of https://github.com/gregtour/duck-lang
Fixed a few bugs in dmath.c where I had written the wrong function names, and updated the bin/examples/math.txt to attempt to run each function. You may want to recompile and push duck/gduck if you are bundling the binaries with the repo to include the Math library as I am not pushing binaries with any of these commits. Hopefully this prototype implementation of the Math library is satisfactory.
Removed stack var int error from math functions, as per your example. Perhaps fault handling is needed in the future?
Added comments above functions mirroring what is done in stdduck.c
Reference counting
Production numbers.
rollback mem. mgmt
CMakeLists.txt
Merge pull request #7 from rpcope1/master

Added Math library
Rebuilt binaries. GC bug hasn't been fixed yet, so a memory leak may exist.
Rebuilt.
Added int() and len() to the standard library.
int() converts a value to an integer primitive.
len() returns the element count of an array or dictionary reference.
Implemented HashTables for Dictionary types.
Unionized VALUE types to reduce memory usage.
Re-implemented dictionaries with HashTable().
Changed hashing function for strings