* added support for word size suffix in getToken
* start modifying number(string) to support word size suffix for signed integers
* word size suffixes for Number
* initial support for BigNumber
* fix linter issues
* remove unused variable
* start extending bitwise operators for Number for values greater than 32 bits
* Revert "start extending bitwise operators for Number for values greater than 32 bits"
This reverts commit 6fac1a7b10665a221ab5de521c08fa9fcf959eb1.
* add a test for 53 bit literal
* added an optional second argument to bin, oct, and hex to allow formatting signed numbers with custom word size
* removed size checks
* Attempted to extend bin, oct, hex format functions to work with BigNumber, but not working fully.
Apparently Decimal.js toString method doesn't take a base parameter like js number does. I guess I have to do the formatting myself.
* Added n2base function to do formatting for BigNumber.
* Added check for zero in n2base.
* Removed old failing tests.
* Added some tests (failing).
* Extended 'format' function with 'base' and 'wordSize' options and changed 'bin', 'oct', and 'hex' to use 'format' function.
* Fixed lint issues.
* Fixed issues related to the merge.
* Corrected a test.
* Fixed bignumber formatter.
* Added tests for math.format with 'base' and 'wordSize' options.
* Fixed lint issue.
* Changed 'base' option to 'bin', 'oct', and 'hex' values for 'notation' option of 'format' function.
* Added word size suffix to the output of format, bin, oct, and hex.
* Updated documentation.
* Update rocket example
- use values for moon ascent (was earth)
- refactor to use easier syntax
- extract functions for readability
- add comments explaining equations
- label chart axes
* Simulate Falcon 9 launch (with atmosphere)
* Add more charts to rocket example
* Track time in rocket example
* Update comments and extract chart options
* Add unit parser benchmark
* Add LRU to memoize function
* Memoize _findUnit
This fixes some performance issues in my heavily-unit-parsing app.
Another idea might be to do an index of reversed unit names, and search
in that, but this is much easier to implement and still should provide
an improvement in the majority of cases (since I'd imagine that most
users tend to prefer a few units at a time, depending on their
application).
* Optimize memoize function
This should be just a little bit faster than before by using Maps, which
have less overhead than javascript objects.
* Try out running unit tests with github actions instead of Travis
* try running browser tests in github actions
* fix workflow names
* run build on pr too
* trying running CI only once on PR
* Revert "trying running CI only once on PR"
This reverts commit 9a3db6e167642e9bd35ed6f20a459c5450dd882e.
* run CI only once on PR from branch
* try running transpiled build on node 10
* correct node version syntax + tidy
* fix syntax
* final (?) fix up
Co-authored-by: Jos de Jong <wjosdejong@gmail.com>
* Update clone.js with doc about deep copying arrays
Since it was missing, and it is important documentation for anyone using math.clone for arrays of arrays (matrices). The deep copying was inferred from the test case, but it shouldn't have been necessary. Now it will hopefully be shown in the doc on the webpage, too.
* Update description to be more general.
Co-authored-by: Jos de Jong <wjosdejong@gmail.com>