Commit Graph

147 Commits

Author SHA1 Message Date
Jeff Wang
2a301e71a9 update readme (default degrees, update outdated stuff), bump version 2021-01-30 22:38:41 -05:00
Jeff Wang
380b90d434 resize/remove unused variables in lcd.c 2021-01-30 22:38:13 -05:00
Jeff Wang
774be02e1f use ->deg as default shifted function now that trig functions operate in degrees
(->rad is down-shifted function now)
2021-01-30 19:00:37 -05:00
Jeff Wang
5bcfb8a371 do all trig calculations in degrees 2021-01-30 18:45:44 -05:00
Jeff Wang
c6ac1e5e2c add random tests for inverse trigonometric functions 2021-01-27 21:11:32 -05:00
Jeff Wang
f15790f252 add random sin/cos/tan trig tests (accuracy is fairly bad) 2020-12-10 22:54:45 -05:00
Jeff Wang
81253d8934 separate out tests into separate files 2020-10-26 22:16:26 -04:00
Jeff Wang
540d9e282c add random y^x tests 2020-10-19 21:36:18 -04:00
Jeff Wang
714cd69b9c add random exp() tests 2020-10-13 22:11:03 -04:00
Jeff Wang
46851eab9f use ctest to run unit tests in parallel (requires newer catch2) 2020-10-13 22:11:03 -04:00
Jeff Wang
08f1d199c1 add random logarithm tests, extra tests near log(1.0) 2020-10-13 22:11:00 -04:00
Jeff Wang
89f442cae8 add random division/reciprocal tests 2020-10-13 00:52:00 -04:00
Jeff Wang
18692d9baf add random sqrt tests 2020-10-13 00:51:57 -04:00
Jeff Wang
a5e64e89d4 free up some flash space 2020-09-13 22:50:19 -04:00
Jeff Wang
273e2f5742 add fast reciprocal sqrt() implementation 2020-09-13 22:49:38 -04:00
Jeff Wang
64754395be add shift down sign, change GUI keys, bump version 2020-09-13 01:55:00 -04:00
Jeff Wang
d8d7f98663 clear IsShiftedUp/Down at end of switch case, allow turning off with either shift 2020-09-13 01:19:22 -04:00
Mirko Scholz
2b915a3e59 decreased accuracy so that the real hardware is useful at 33 MHz 2020-09-10 19:59:57 +02:00
Mirko Scholz
5f0bd3886a cleanup 2020-09-10 19:23:58 +02:00
Mirko Scholz
2903579efd added arcsin and arccos
added a stack for temporaries, otherwise it became to tedious to keep
track which function uses which temporary for later
2020-09-10 18:49:47 +02:00
Mirko Scholz
370df33a6c implemented roll up 2020-09-10 16:42:32 +02:00
Mirko Scholz
9deae8128d freed unused internal ram 2020-09-10 16:40:40 +02:00
Mirko Scholz
0b5e011017 made new functions accessible to the calculator 2020-09-10 16:37:23 +02:00
Mirko Scholz
e4ad37623b implemented arctan 2020-09-10 15:38:26 +02:00
Mirko Scholz
3e5648de87 implemented sin, cos, theta for all real numbers 2020-09-10 14:30:53 +02:00
Mirko Scholz
2caedc9a45 re-structured tests 2020-09-10 11:40:26 +02:00
Mirko Scholz
f95aa9ab82 fixed tests 2020-09-09 23:52:30 +02:00
Mirko Scholz
13d26e7b75 simple trigonometric functions as in Sinclair scientific 2020-09-09 23:37:46 +02:00
Mirko Scholz
a491ab0461 print the maximal stack pointer value when pressing shift 2020-09-09 09:40:26 +02:00
Mirko Scholz
2a9801e676 superfluous 2020-09-09 08:47:51 +02:00
Mirko Scholz
4316f928f8 added facility to debug the stack pointer on P3_4 (LCD LED cathode)
roughly 139 bytes
functions were chosen by manually traversing pow_decn to the bottom
2020-09-08 23:46:41 +02:00
Mirko Scholz
7593260487 freed some space for the stack 2020-09-08 16:57:25 +02:00
Mirko Scholz
3f7dfe460b declaration exists already in decn.h 2020-09-08 16:56:50 +02:00
jjj11x
0add7eb813
bump version 2020-09-07 23:05:31 -04:00
Mirko Scholz
51c2d2e2e7 handle truncation in entering numbers properly 2020-09-05 10:55:33 +02:00
Mirko Scholz
6ab4cfb714 extra checks for multiply 2020-09-05 10:35:45 +02:00
Mirko Scholz
6487fbde6e move constants out of the header
(as far as my C knowledge goes, this may cause problems with the linker)
2020-09-05 10:25:35 +02:00
Mirko Scholz
1075e6d103 truly take advantage of __code pointer 2020-09-05 09:59:08 +02:00
Mirko Scholz
c18c0dabfd handle special cases for power function 2020-09-05 01:08:09 +02:00
Mirko Scholz
5ea2818fe3 move pow_decn from header to source file 2020-09-05 00:18:47 +02:00
Mirko Scholz
1fb0a1fd50 row/col should be always less than 16 2020-09-04 23:02:46 +02:00
Mirko Scholz
a8cf1a881b put two flags into bit addressable ram 2020-09-04 22:55:16 +02:00
Mirko Scholz
fb76fac249 move VER_STR into flash 2020-09-04 22:23:35 +02:00
Mirko Scholz
9464360014 compiles under gcc 10 2020-09-04 21:16:46 +02:00
Mirko Scholz
ae9beb120a handle common install paths for catch.hpp 2020-09-04 21:13:26 +02:00
Mirko Scholz
d3314a9de9 gcc 10 refuses to link otherwise 2020-09-04 20:48:09 +02:00
Mirko Scholz
eea645f401 compiles again under sdcc-3.5.0 2020-09-04 20:45:29 +02:00
Jeff Wang
fc0fe7c327 initial reciprocal square root prototyping 2019-12-11 02:27:27 -05:00
Jeff Wang
b04a95e420 increase test coverage 2019-11-20 01:54:04 -05:00
Jeff Wang
218cb67ea7 more automated unit tests 2019-11-19 00:00:18 -05:00