Peter Baratta
5f3dd37f98
Move the silencing of numpy's warnings into test_calc.py
...
..because that is where it is the most annoying/visible. Otherwise it really
has no effect on the LMS or anything else.
2013-08-15 08:54:43 -04:00
Peter Baratta
a1162cbb34
Change calc module
...
- Create a method called `parse_algebra`. It takes a string of math and returns with a `pyparsing.ParseResults` object representing it.
- `evaluator` takes this tree and applies the old "parse actions" to it to get the same number as it used to.
- Change calc's API: `evaluator` to use `case_sensitive` rather than `cs`
- Add most of the capability for latex rendering
2013-08-12 11:40:20 -04:00
Peter Baratta
944e3390e0
Add support for various math functions in calc.py.
2013-06-10 11:35:34 -04:00
Peter Baratta
ed90ed9a34
Added tests for new math functions
2013-06-10 11:35:33 -04:00
Peter Baratta
ff3997e72e
Add test to verify a single period is not accepted as input
2013-05-31 12:37:14 -04:00
Peter Baratta
087834337a
Pep8 newline
2013-05-31 11:05:21 -04:00
Peter Baratta
80a27f9391
Add test and functionality for trailing period
2013-05-31 10:41:08 -04:00
Peter Baratta
2793bb4337
Add few more tests; fix a small bug with parallel resistors
2013-05-23 17:43:26 -04:00
Peter Baratta
2486f7c271
Fixed docstrings and other comments from PR review
2013-05-23 17:38:16 -04:00
Peter Baratta
43395b70b7
Enable coverage for calc module; split off tests
2013-05-21 15:20:51 -04:00
Peter Baratta
82482e89ea
Finish calc.py tests; add docstrings, etc
2013-05-21 11:07:19 -04:00
Peter Baratta
5e8d2ce4f7
Start making comprehensive calc tests
2013-05-20 15:30:16 -04:00