-
Notifications
You must be signed in to change notification settings - Fork 122
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Numbas.jme.makeFast can cope with type casting.
It also replaces all integer constants with numbers, so that they don't produce rationals when you divide them, which produce decimals when you combine them with something else. Decimals are very slow to construct, so it's good to avoid them. It would be nice if Numbas.jme.inferTreeType had a way of picking functions that avoid decimal and rational outputs when possible, but this is a quick fix for now.
- Loading branch information
1 parent
84953d9
commit 1fd9081
Showing
4 changed files
with
366 additions
and
69 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
Oops, something went wrong.