New Calculator Add-in
#1
Posted 23 August 2004 - 10:30 PM
RPN Base Calculator
This add-in is pretty limited as a calculator, but it is great if you want to do some quick base calculations. It was programmed by Eric Vargas Albertson, who is an intern at Saltire.
This add-in should become obsolete in the next month or so. I'm working on an HP49 style calculator add-in that supports a subset of the HP48/49 commands. I'll probably name it CP48 . I'm also allowing a duel window view where you can view both the ClassPad's MAIN window and CP48 window at the same time, so you can drag and drop between the two.
I have a prototype of this add-in working. The problem I'm trying to tackle now it getting the output to display correctly. I want to be able to have complex numbers display like "(real, imaginary)". I also want to add a polar mode so it can display "(abs, <arg)", where < is the angle character. I also want line wrapping of output so if your answer is a siple complex number you can view the whole answer without having to scroll.
#2
Posted 23 August 2004 - 10:47 PM
I mentioned ina post a few years ago that Casio would have been wise to snatch up the RPN market HP abandoned when it stopped making calcs.
But they are back now so oh well. Nice to see RPN on Casio though.
- dscoshpe -
#3
Posted 23 August 2004 - 10:52 PM
I love CASs. cuz I think the only valuable feature of professional calcs is their CAS.
#4
Posted 24 August 2004 - 01:15 AM
Does your add-in (CP49) support CAS features??
I love CASs. cuz I think the only valuable feature of professional calcs is their CAS.
The CP48 add-in I'm developing will support all of the CAS. I've created a table of all the CAS commands. along with the number of arguments they take. If the user enters one of these CAS commands I simply pop that number of arguments off the stack, evaluate it, and push the result back onto the stack. That was the easy part.
The REAL work is creating a new parser and string output engine that can handle both the RPN commands and syntax and the ClassPad syntax.
The idea is, it should feel like the HP48/49 and support all of the functionality of the ClassPad.
NOTE: The add-in on ClassPad.org is right now is only a 4-function calculator and not the CP48 add-in I'm creating.
#5
Posted 24 August 2004 - 09:30 AM
#6
Posted 24 August 2004 - 10:24 AM
The CP48 add-in I'm developing will support all of the CAS. I've created a table of all the CAS commands. along with the number of arguments they take. If the user enters one of these CAS commands I simply pop that number of arguments off the stack, evaluate it, and push the result back onto the stack. That was the easy part.
The REAL work is creating a new parser and string output engine that can handle both the RPN commands and syntax and the ClassPad syntax.
The idea is, it should feel like the HP48/49 and support all of the functionality of the ClassPad.
NOTE: The add-in on ClassPad.org is right now is only a 4-function calculator and not the CP48 add-in I'm creating.
Gosh This add-in will really have the same functionality as an HP49, with all its mathematics capabilities ? Classpad really ROCKS !
#7
Posted 24 August 2004 - 11:51 AM
#8
Posted 24 August 2004 - 02:41 PM
I input "2222222222222222222" number in DEC mode, then I change it to BIN mode. But I can't see all of the number ! (101010101111010110...............).
Because you use only one line for number display. You should use arrow
#9
Posted 24 August 2004 - 04:56 PM
OK, it won't have all the functionality of the HP49. To start out I want to create the basic RPN evaluation and the HP49 stack interface. Initially it will be a ClassPad with an HP49 interface.Gosh This add-in will really have the same functionality as an HP49, with all its mathematics capabilities ? Classpad really ROCKS !
I also want to create a similar programming language. The HP allows programs to coexist with everything else on the stack. Imagine being able to create a list of programs and then get one element and evaluate it. The HP49 even lets you "build" a program from a program.
From there I'll add things one by one, like polar mode, units, etc.. It will be a gradual process.
All CAS functions of CP or HP?
The CP of course. The initial version will be a HP49 style interface (with a stack) on top of the ClassPad.
#10
Posted 24 August 2004 - 04:58 PM
I found a bug :
I input "2222222222222222222" number in DEC mode, then I change it to BIN mode. But I can't see all of the number ! (101010101111010110...............).
Because you use only one line for number display. You should use arrow
Yep, thats a problem. I think Eric (the guy who programmed the add-in is just displaying the text using a "TextOut" style function. He isn't using any type of control. I'll look into the source to see how easy this will be to change.
#11
Posted 24 August 2004 - 08:16 PM
OK, it won't have all the functionality of the HP49. To start out I want to create the basic RPN evaluation and the HP49 stack interface. Initially it will be a ClassPad with an HP49 interface.
I also want to create a similar programming language. The HP allows programs to coexist with everything else on the stack. Imagine being able to create a list of programs and then get one element and evaluate it. The HP49 even lets you "build" a program from a program.
From there I'll add things one by one, like polar mode, units, etc.. It will be a gradual process.
The CP of course. The initial version will be a HP49 style interface (with a stack) on top of the ClassPad.
if your making a new language make sure to keep me informed... i have lots of suggestions on that topic
#12
Posted 24 August 2004 - 09:00 PM
oohhhhhhhhhh. I know this is impossible
Finally I'll buy a HP49G+
#13
Posted 24 August 2004 - 09:51 PM
if your making a new language make sure to keep me informed... i have lots of suggestions on that topic
It is more like an old language. I'd be creating an HP49 language (HP calls it RPL) that uses the stack. This is different than most languages. I'll still keep you informed for suggestions and ideas
Oh, its possible all right, and I plan on doing it.It would be very very nice if you could put HP CAS functions in CP.
oohhhhhhhhhh. I know this is impossible
Finally I'll buy a HP49G+
I have to create my own funtions for manipulating the stack, like DUP, SWAP, ROT. I also have to create functions that manipulate objects on the stack. For example LIST-> expands a list to the stack and leaves the list size on level 1 of the stack.
Since I have to create and handle my own functions, there is no reason why I can add any function. In essence, The CP48 add-in will be a superset of the ClassPad. If I can manage it, you'll be able to write user defined programs or functions in Casio Basic or in RPL (the HP49's language). This opens up a whole set of new code to the ClassPad. Anything that is written in RPL could be run on the ClassPad too .
NOTE: When I use the term RPL, I mean user-RPL. User-RPL is the subset that is available directly on the calculator. System-RPL is the superset that is available if you write a library for the HP48/49 on the PC.
BTW, if anyone wants to see the prototype let me know. It has a full stackand editline, and has all the basic RPL stack functions like DUP, SWAP, ROT, etc.. It also handles all the ClassPad functions in RPN. For example you can enter...
X DUP SIN SWAP 2 ^ +
and get out sin(x)+x^2
#14
Posted 25 August 2004 - 09:50 AM
I love it. you understand???
#15
Posted 25 August 2004 - 11:14 AM
#16
Posted 25 August 2004 - 07:22 PM
#17
Posted 25 August 2004 - 07:36 PM
The HP49 CAS doesn't come close to the ClassPad CAS. There is no reason I can think of to use the HP49 CAS. If there actually is something useful it really should be written so it extends the ClassPad CAS. Plus, the HP49 CAS is written in RPL, so it will only compile and run on an HP48/49.
In fact, this is kind of what I'm doing with my CP49 add-in. I'm using the ClassPad CAS as the base and writting a wrapper around it. This will let me work seamlessly with the ClassPad. For example, when I have the ability to write RPL programs you willl be able to call a program written in Casio Basic, or one written in RPL, or both . Also since I'll be controlling the main evaluation loop you'll be able to write new functions in C/C++ that act like built-in functions.
I have a prototype available if anyonw wants to try it out. It is in its early stages but still very useful. It has an RPN stack and can accept basic RPN copmmands. It also has RPN versions of all the built-in ClassPad functions.
http://www.classpad.org/beta/CP49.zip
#18
Posted 25 August 2004 - 07:40 PM
#19
Posted 28 February 2005 - 06:43 PM
#20 Guest_Guest_*
Posted 01 March 2005 - 01:29 PM
What makes you say that? In what areas do you feel the HP49 is lacking compared to a ClassPad, and vice versa?
#21
Posted 01 March 2005 - 09:12 PM
This add-in should become obsolete in the next month or so. I'm working on an HP49 style calculator add-in that supports a subset of the HP48/49 commands. I'll probably name it CP48 . I'm also allowing a duel window view where you can view both the ClassPad's MAIN window and CP48 window at the same time, so you can drag and drop between the two.
Wow, this is great Hope you didn't drop the project I'm looking forward to seeing it fully functional Classpad needs such great Add-ins Keep up the good work!
Best regards
#22
Posted 02 March 2005 - 05:13 PM
I've been extremely busy on new cool things for the ClassPad (that I can't mention).
Whenever I get time to breath I'll get back on the CP48 horse. Feel free to remind me if I forget.
#23 Guest_Guest_*
Posted 06 March 2005 - 12:57 AM
OK, I've dropped the ball on this one, but only for a short while.
I've been extremely busy on new cool things for the ClassPad (that I can't mention).
Whenever I get time to breath I'll get back on the CP48 horse. Feel free to remind me if I forget.
Hi SoftCalc,
Have you any info on Financial Functions for the CP300 such as IRR, NPV, Annuities, etc?
#24
Posted 06 March 2005 - 05:33 PM
The HP49 CAS doesn't come close to the ClassPad CAS. There is no reason I can think of to use the HP49 CAS
Well, i've been testing for a while in my HP49G some things that people with a CP can't do or the CP CAS fails or gives wrong results. but until now my calc allways gave me the correct results, so i don't know why you say that.
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users