Jump to content



Photo
- - - - -

New Calculator Add-in


  • Please log in to reply
23 replies to this topic

#1 SoftCalc

SoftCalc

    Casio Technician

  • Members
  • PipPipPipPipPipPip
  • 406 posts
  • Location:Portland, OR USA

  • Calculators:
    ClassPad 300 , AFX 2.0, HP-48/49/50, TI-89/92/Voyager, HP Expander, etc...

Posted 23 August 2004 - 10:30 PM

There is yet another new add-in on classpad.org. This one is a simple 4-function calculator that only operates on integers. The REAL feature of this calculator its ability to display in HEX/DEC/OCT/BIN. It also has a basic RPN stack.

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 :P. 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 dscoshpe

dscoshpe

    Casio Freak

  • [Legends]
  • PipPipPipPip
  • 185 posts
  • Location:California, USA

  • Calculators:
    AFX 2.0 (v1.00), 9850Ga+, 9800, BE-300 other..

Posted 23 August 2004 - 10:47 PM

RPN, awesome!

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 Daruosh

Daruosh

    Casio Freak

  • Members
  • PipPipPipPip
  • 285 posts
  • Gender:Male
  • Location:Tehran - Iran
  • Interests:Computer Programming, Electronics, Image Processing, Neural Networks, AI, System Development, Calc, Guitar, Music,

  • Calculators:
    CP 300 OS 3.03, Algebra FX 2.0 Plus ROM 1.05, CG-20

Posted 23 August 2004 - 10:52 PM

Does your add-in (CP49) support CAS features??
I love CASs. cuz I think the only valuable feature of professional calcs is their CAS.

#4 SoftCalc

SoftCalc

    Casio Technician

  • Members
  • PipPipPipPipPipPip
  • 406 posts
  • Location:Portland, OR USA

  • Calculators:
    ClassPad 300 , AFX 2.0, HP-48/49/50, TI-89/92/Voyager, HP Expander, etc...

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.

<{POST_SNAPBACK}>


The CP48 add-in I'm developing will support all of the CAS. :nod: 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 Daruosh

Daruosh

    Casio Freak

  • Members
  • PipPipPipPip
  • 285 posts
  • Gender:Male
  • Location:Tehran - Iran
  • Interests:Computer Programming, Electronics, Image Processing, Neural Networks, AI, System Development, Calc, Guitar, Music,

  • Calculators:
    CP 300 OS 3.03, Algebra FX 2.0 Plus ROM 1.05, CG-20

Posted 24 August 2004 - 09:30 AM

Well. I wish it will be ready soon.

#6 Pem

Pem

    Newbie

  • Members
  • Pip
  • 17 posts

  • Calculators:
    Classpad 300 - TI83+ - TI82

Posted 24 August 2004 - 10:24 AM

The CP48 add-in I'm developing will support all of the CAS. :nod: 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.

<{POST_SNAPBACK}>



Gosh 8O This add-in will really have the same functionality as an HP49, with all its mathematics capabilities ? Classpad really ROCKS ! :rock:

#7 Daruosh

Daruosh

    Casio Freak

  • Members
  • PipPipPipPip
  • 285 posts
  • Gender:Male
  • Location:Tehran - Iran
  • Interests:Computer Programming, Electronics, Image Processing, Neural Networks, AI, System Development, Calc, Guitar, Music,

  • Calculators:
    CP 300 OS 3.03, Algebra FX 2.0 Plus ROM 1.05, CG-20

Posted 24 August 2004 - 11:51 AM

All CAS functions of CP or HP?

#8 PJay

PJay

    Casio Freak

  • Members
  • PipPipPipPip
  • 260 posts
  • Gender:Male

  • Calculators:
    Casio fx-991ES Plus

Posted 24 August 2004 - 02:41 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 :arrow: :!:

#9 SoftCalc

SoftCalc

    Casio Technician

  • Members
  • PipPipPipPipPipPip
  • 406 posts
  • Location:Portland, OR USA

  • Calculators:
    ClassPad 300 , AFX 2.0, HP-48/49/50, TI-89/92/Voyager, HP Expander, etc...

Posted 24 August 2004 - 04:56 PM

Gosh 8O This add-in will really have the same functionality as an HP49, with all its mathematics capabilities ? Classpad really ROCKS ! :rock:

<{POST_SNAPBACK}>

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.

All CAS functions of CP or HP?

<{POST_SNAPBACK}>


The CP of course. The initial version will be a HP49 style interface (with a stack) on top of the ClassPad.

#10 SoftCalc

SoftCalc

    Casio Technician

  • Members
  • PipPipPipPipPipPip
  • 406 posts
  • Location:Portland, OR USA

  • Calculators:
    ClassPad 300 , AFX 2.0, HP-48/49/50, TI-89/92/Voyager, HP Expander, etc...

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  :arrow:  :!:

<{POST_SNAPBACK}>


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 CrimsonCasio

CrimsonCasio

    UCF Ambassador

  • [Legends]
  • PipPipPipPipPipPipPipPipPipPip
  • 3579 posts
  • Gender:Male
  • Location:USA
  • Interests:Claculators, Stephen King, Video Games, Calculators, Programming, Calculators, Reading, Calculators... hmm, what else... Ah! Calculators!

  • Calculators:
    Algebra FX2.0, CFX 9850Ga+, Classpad 300

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.

<{POST_SNAPBACK}>


if your making a new language make sure to keep me informed... i have lots of suggestions on that topic ;)

#12 Daruosh

Daruosh

    Casio Freak

  • Members
  • PipPipPipPip
  • 285 posts
  • Gender:Male
  • Location:Tehran - Iran
  • Interests:Computer Programming, Electronics, Image Processing, Neural Networks, AI, System Development, Calc, Guitar, Music,

  • Calculators:
    CP 300 OS 3.03, Algebra FX 2.0 Plus ROM 1.05, CG-20

Posted 24 August 2004 - 09:00 PM

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+

#13 SoftCalc

SoftCalc

    Casio Technician

  • Members
  • PipPipPipPipPipPip
  • 406 posts
  • Location:Portland, OR USA

  • Calculators:
    ClassPad 300 , AFX 2.0, HP-48/49/50, TI-89/92/Voyager, HP Expander, etc...

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 ;)

<{POST_SNAPBACK}>


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 :)


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+

<{POST_SNAPBACK}>

Oh, its possible all right, and I plan on doing it.

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 :D.

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 Daruosh

Daruosh

    Casio Freak

  • Members
  • PipPipPipPip
  • 285 posts
  • Gender:Male
  • Location:Tehran - Iran
  • Interests:Computer Programming, Electronics, Image Processing, Neural Networks, AI, System Development, Calc, Guitar, Music,

  • Calculators:
    CP 300 OS 3.03, Algebra FX 2.0 Plus ROM 1.05, CG-20

Posted 25 August 2004 - 09:50 AM

Well Brian. Can I help you in this project. I can write some codes, be beta tester of your add-in, and develop it.
I love it. you understand???

#15 Pem

Pem

    Newbie

  • Members
  • Pip
  • 17 posts

  • Calculators:
    Classpad 300 - TI83+ - TI82

Posted 25 August 2004 - 11:14 AM

Did you know that HP CAS has been open-sourced since few months : here it is, under GPL licence ? It may be useful to develop your software, even if it is ASM.

#16 Daruosh

Daruosh

    Casio Freak

  • Members
  • PipPipPipPip
  • 285 posts
  • Gender:Male
  • Location:Tehran - Iran
  • Interests:Computer Programming, Electronics, Image Processing, Neural Networks, AI, System Development, Calc, Guitar, Music,

  • Calculators:
    CP 300 OS 3.03, Algebra FX 2.0 Plus ROM 1.05, CG-20

Posted 25 August 2004 - 07:22 PM

It's open sourec for non-commercial use.

#17 SoftCalc

SoftCalc

    Casio Technician

  • Members
  • PipPipPipPipPipPip
  • 406 posts
  • Location:Portland, OR USA

  • Calculators:
    ClassPad 300 , AFX 2.0, HP-48/49/50, TI-89/92/Voyager, HP Expander, etc...

Posted 25 August 2004 - 07:36 PM

The HP49 CAS was originally written as an add-in (library) for the HP48. In fact, almost everything added to the HP49 were actually libraries that users created. HP integrated and cleaned up some of these libraries and "presto" they had a new machine.

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 :D. 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 Daruosh

Daruosh

    Casio Freak

  • Members
  • PipPipPipPip
  • 285 posts
  • Gender:Male
  • Location:Tehran - Iran
  • Interests:Computer Programming, Electronics, Image Processing, Neural Networks, AI, System Development, Calc, Guitar, Music,

  • Calculators:
    CP 300 OS 3.03, Algebra FX 2.0 Plus ROM 1.05, CG-20

Posted 25 August 2004 - 07:40 PM

Great Application. I belive you Brian. ;)

#19 Pem

Pem

    Newbie

  • Members
  • Pip
  • 17 posts

  • Calculators:
    Classpad 300 - TI83+ - TI82

Posted 28 February 2005 - 06:43 PM

Softcalc : is CP48 till in development ? I recently discovered RPN and it really rocks to enter quickly simple expressions, without brackets, and I'd really enjoy doing that on clasppad :)

#20 Guest_Guest_*

Guest_Guest_*
  • Guests

Posted 01 March 2005 - 01:29 PM

"The HP49 CAS doesn't come close to the ClassPad CAS"

What makes you say that? In what areas do you feel the HP49 is lacking compared to a ClassPad, and vice versa?

#21 m4x

m4x

    Newbie

  • Members
  • Pip
  • 18 posts
  • Location:Poland

  • Calculators:
    Classpad 300, fx-991MS

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 :P.  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.

<{POST_SNAPBACK}>


Wow, this is great :D Hope you didn't drop the project :) I'm looking forward to seeing it fully functional :) Classpad needs such great Add-ins :D Keep up the good work! :)

Best regards

#22 SoftCalc

SoftCalc

    Casio Technician

  • Members
  • PipPipPipPipPipPip
  • 406 posts
  • Location:Portland, OR USA

  • Calculators:
    ClassPad 300 , AFX 2.0, HP-48/49/50, TI-89/92/Voyager, HP Expander, etc...

Posted 02 March 2005 - 05:13 PM

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. :)

#23 Guest_Guest_*

Guest_Guest_*
  • Guests

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. :)

<{POST_SNAPBACK}>


Hi SoftCalc,

Have you any info on Financial Functions for the CP300 such as IRR, NPV, Annuities, etc?

#24 R00KIE

R00KIE

    Casio Freak

  • Members
  • PipPipPipPip
  • 155 posts
  • Location:Portugal
  • Interests:Electronics, games, programming

  • Calculators:
    HP49G ROM 1.24; CASIO CFX-9850GB PLUS;CASIO FX-6300G; CASIO FX-82TL

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.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users