RPNcalc+ free colorful web calculator

11222020, 01:40 PM
Post: #21




RE: RPNcalc+ free colorful web calculator
(11212020 07:53 PM)radulle Wrote: Implemented decimal math using decimal.js library. Nice work. But decimal type may need some work. https://rpncalcplus.web.app/ issues:
The upside is we have *huge* expoenent range. (note: we avoid using the bad 10^X) "2.302585092994e15 E^X LOG " → 999,999,999,999,980 Decimal type have 20 digits mantissa, 15 digits exponents. 

11222020, 02:46 PM
Post: #22




RE: RPNcalc+ free colorful web calculator
(11222020 01:40 PM)Albert Chan Wrote:(11212020 07:53 PM)radulle Wrote: Implemented decimal math using decimal.js library. Albert Chan & EdS2, thank you very much, I went with a presumption that JS Math's methods worked in the same way as Decimal's which is not the case (e.g. LN vs LOG), I will definitely have to explore this new library more and iron all the issues. Due to current calculator like design I limited exponent to two digits, do you find use of a very large exponent? 

11222020, 04:15 PM
Post: #23




RE: RPNcalc+ free colorful web calculator
For trigonometric functions that return very small values (e.g. sin(0) and cos(pi/2) give less than 10E16) would it be correct to return zero?


11222020, 04:51 PM
(This post was last modified: 11222020 04:54 PM by CMarangon.)
Post: #24




RE: RPNcalc+ free colorful web calculator
Hello!
You made a nice job.:) I belong to the kind of people that have difficulty with RPN. During my college time I used HP48 for programs, plots, matrixes and a Casio for numeric expressions. However, I use RPN to program the HP50/49/48. A similar thing that happens is that I don't use Linux at home, however all sites that I made till today, are hosted in Linux servers. I made a javascript Calculator, take a look, http://area48.com/calculator.html I'm a mix of Saru and Linus, from Star Trek Discovery:) Saru and Linus l Carlos  Brazil Time Zone: GMT 3 http://area48.com 

11222020, 06:03 PM
Post: #25




RE: RPNcalc+ free colorful web calculator
(11222020 04:51 PM)CMarangon Wrote: You made a nice job.:) Thank you, conversion utils seem very useful and web site as a whole is very rich in information. 

11222020, 06:14 PM
Post: #26




RE: RPNcalc+ free colorful web calculator
(11222020 01:40 PM)Albert Chan Wrote: https://rpncalcplus.web.app/ issues: These were great finds, I will be sure to add them to unit tests when I get to them (for this purpose I moved all calculation logic to calc.js). Issues:


11232020, 09:57 AM
Post: #27




RE: RPNcalc+ free colorful web calculator
(11222020 04:15 PM)radulle Wrote: For trigonometric functions that return very small values (e.g. sin(0) and cos(pi/2) give less than 10E16) would it be correct to return zero? Ideally not, because of the wonderful behaviour of sin(x) near pi: sin(3.1415) > 0.00009265358966 sin(3.1415926535) > 8.97932384626434e11 About the keyboard shortcuts: I was surprised to see S for sin and s for arcsin. Why this way around? My intuition led me to expect the unshifted key to perform the forward function. 

12022020, 11:34 PM
Post: #28




RE: RPNcalc+ free colorful web calculator
(11232020 09:57 AM)EdS2 Wrote: About the keyboard shortcuts: I was surprised to see S for sin and s for arcsin. Why this way around? My intuition led me to expect the unshifted key to perform the forward function. I see your point, but it is because of the shift keyboard shortcut which is used to reveal that set of keys. In the meantime I upgraded most of the libraries used, tested it and it seems fine, but if you notice anything strange. Decimal.js seems fine for now. 

« Next Oldest  Next Newest »

User(s) browsing this thread: 1 Guest(s)