-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Added more trigonometric functions inside the Number class.
- Added checks for some trigonometric functions to return complex numbers for certain values. - Added support for a new syntax to change or add a given variable inside a class. Example: local Num!PREC = 42; # changes the precision for numbers say sqrt(2); # calculates the square root of 2 using only 42 bits The feature works for user-defined classes as well. - Changed the behavior of the Complex comparison operators, such as >, <, >=, <=. All of them will check the absolute values, which means that: Complex(1, 2) <= Complex(3, 4) is equivalent with: Complex(1, 2).abs <= Complex(3, 4).abs - Fixed the deparsing of static variables declared with an empty expression. Example: static x = (); # works now, by assigning nil to x This is true for constants as well. - Updated the Optimizer to cover a few more methods. - Improved the +/- Infinity types. - Added the Number.commify method.
- Loading branch information
trizen
committed
Dec 30, 2015
1 parent
734392a
commit b6ed0b9
Showing
8 changed files
with
591 additions
and
215 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.