Commit Graph

131 Commits

Author SHA1 Message Date
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
bb7deb53cb address cmake warning 2020-09-04 20:54:39 +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
38c4e4678c update readme 2019-11-19 00:04:58 -05:00
Jeff Wang
218cb67ea7 more automated unit tests 2019-11-19 00:00:18 -05:00
Jeff Wang
e907f4571d start converting testbench to Catch unit tests 2019-11-18 04:30:20 -05:00
Jeff Wang
816c3d7ec6 update readme 2019-11-14 04:14:18 -05:00
Jeff Wang
d532f2cf44 put license notice in all files, use GPLv3+ 2019-11-14 03:45:52 -05:00
Jeff Wang
9402bd512f keyboard support for Qt GUI 2019-11-14 03:32:07 -05:00
Jeff Wang
f70510e46a use cmake everywhere for desktop build, fix build warnings 2019-11-14 02:44:07 -05:00
Jeff Wang
f25a71b74c v1.09: bugfix for taking log/ln of a number with an exponent of 99 2019-11-14 02:15:34 -05:00
Jeff Wang
47459f5253 v1.08 bugfix: make clearX actually clear X instead of just clearing number entry 2019-10-22 20:17:30 -04:00
Jeff Wang
fdda8feafb v1.07 various bug fixes 2019-10-22 02:24:06 -04:00
Jeff Wang
ada1102258 fix for LASTx/RCL behavior after operation
- previously "2 enter 3 * LASTx" would overwrite X instead of lifting
stack
2019-10-22 02:23:30 -04:00
Jeff Wang
56e3034f9d bugfix for exponents > 127 getting printed as negative 2019-10-22 02:13:29 -04:00
Jeff Wang
f7da807dd4 v1.06: STO/RCL/lastX, bugfix for sqrt(0), more checks for NaN/Error before operations 2019-10-22 01:09:32 -04:00
Jeff Wang
c3aa80289f fix square root of 0 bug 2019-10-22 01:07:28 -04:00
Jeff Wang
2816712d49 fix width and height of qt gui, update screenshot with STO/RCL/LastX/rotate 2019-10-21 02:36:57 -04:00
Jeff Wang
581a8e26f1 disallow subtraction/negation of error 2019-10-21 02:36:57 -04:00
Jeff Wang
c05a402b72 add STO, RCL, lastX, and rotate; do not require holding shift while
pressing 0 to turn off
2019-10-21 02:36:57 -04:00
jjj11x
f184c6dc18
update programming instructions in readme 2019-10-16 02:35:30 -04:00
Jeff Wang
74b287357c reorganize/edit readme 2019-10-10 01:12:47 -04:00
Jeff Wang
b5304f358e add smaller picture of calculator 2019-10-07 18:08:24 -04:00
Jeff Wang
73585be8bb update readme again 2019-10-07 03:51:28 -04:00
Jeff Wang
b18969fef0 update gui 2019-10-07 03:19:26 -04:00
Jeff Wang
f847cd8869 update readme 2019-10-07 01:55:35 -04:00
Jeff Wang
8ff83bf3e9 binaries for v1.05 with log()/exp() and y^x support 2019-10-07 00:09:51 -04:00
Jeff Wang
8f0598d75c move tmp4 to xdata to free up more stack space 2019-10-07 00:08:25 -04:00
Jeff Wang
a3b00dd815 fix division: make recip operate on accum
also avoids extra copy when only taking recip
2019-10-07 00:08:08 -04:00
Jeff Wang
8e9f37c7d2 add sqrt() and 1/x functions 2019-10-06 21:38:42 -04:00
Jeff Wang
45e4dd25f8 fix e^x calculation for negative x 2019-10-06 21:38:32 -04:00
Jeff Wang
5345843974 update refout 2019-10-06 21:06:48 -04:00
Jeff Wang
5f0cec0bad bugfix for log()/pow: minimize stack usage 2019-10-06 21:04:45 -04:00
Jeff Wang
75dd499630 add power function, try to reduce stack usage, standardize unary ops 2019-10-06 21:04:45 -04:00
Jeff Wang
bf0bfe39a4 calculate relative diff instead of absolute diff 2019-10-06 21:04:45 -04:00
Jeff Wang
1a9bbcc1ce initial exp() implementation
(refout for log(1.5) changed due to using more accurate expected result)
2019-10-06 21:04:40 -04:00
Jeff Wang
277ae0acf3 speedup log calculation by optimizing mulitplication by 1 + 10^-j 2019-10-05 01:04:57 -04:00
Jeff Wang
06ca0b2829 speedup log calculation by optimizing subtracting 10, regenerate reference output 2019-10-05 01:04:38 -04:00
Jeff Wang
ce42e30513 log10() fixes to prevent calculator from crashing 2019-10-04 23:49:42 -04:00
Jeff Wang
c2edc7871d fix top line display after clearing after arith operation (anything which disables stack lift) 2019-10-03 01:11:42 -04:00
Jeff Wang
c42cdedc1b fix enter for DUP showing X as 0, unify processing of commands 2019-10-03 00:58:54 -04:00
Jeff Wang
75de345f7c merge fix 2019-10-03 00:33:45 -04:00
Jeff Wang
181469dd57 set error when trying to calculate log(0) 2019-10-03 00:32:38 -04:00
Jeff Wang
c3ec112f97 bugfix for shift-clear 2019-10-03 00:32:35 -04:00
Jeff Wang
21be4081b2 add log10() function 2019-10-03 00:31:25 -04:00
Jeff Wang
0f17fbdcc7 fix digit entry before taking log
separate out finishing entry/processing command into common function
2019-10-03 00:31:20 -04:00