Omnimaga

Calculator Community => Other Calc-Related Projects and Ideas => TI Z80 => Topic started by: Silver Shadow on June 09, 2010, 03:38:31 pm

Title: AutoCalc - App Version with Symbolic and PrettyPrint support
Post by: Silver Shadow on June 09, 2010, 03:38:31 pm
Download:
http://www.ticalc.org/archives/files/fileinfo/429/42961.html

Some quick info:

Recently on TI-Bank came out v3.0 of AutoCalc, a CAS program for z80 made by Xavier Andréani. Even though it is quite awesome, the large amount of programs that it uses and the not-so-friendly GUI have made it quite difficult to use. Therefore, I made an app version of this program (using BasicBuilder), with a cleaner GUI and with Symbolic and PrettyPrint (the app, not TI's MP OS) support.

Instructions:

The app uses a command line style interface, similar to the one used by TI on the homecreen.
For calculations, just type them in and wait.
To exit the app, type QUIT.
If you forgot the syntax for the Symbolic and PrettyPrint functions, type HELP.
If it is taking forever to calculate the result and you want to abandon, press the On button. You'll have to relaunch the app after this, though.

Other functions, requiring Symbolic and/or PrettyPrint, have a slightly different syntax (the ":" character that appears in some of the functions HAS to be used for the functions to be recognized):


D: derivates the expression with respect to X
PD: same as above but also outputs the result using PrettPrint
SIMP: simplifies the expression
PNUM: the standard CAS calculation, but with PrettyPrint output
PEXP: simplifies an expression and then outputs the result using PrettyPrint
PRON enables AutoPrettyPrint, so that all functions and calculations automatically output their results in PrettyPrint
PROFF disables AutoPrettyPrint

The app automatically saves your AutoPrettyPrint settings, so that you don't have to modify them each time you run it.
Also, the app saves the last result into the Ans var and Str0, so that it can be used after quitting the app.
The app has been made so that Symbolic and PrettyPrint are optional, meaning that it will work without them, though with less functions available. The main CAS calculator engine doesn't require Symbolic to work properly.
I also recommend using Omnicalc to install Symbolic, since this allows faster loading times and other nifty functions.

I would be very grateful if you tested all of its functions and reported any bugs in this thread. Thanks.
Title: Re: AutoCalc - App Version with Symbolic support
Post by: DJ Omnimaga on June 09, 2010, 03:47:03 pm
Mhmm I remember the name somewhere but I forgot what it did x.x

I hope you can explain soon ^^
Title: Re: AutoCalc - App Version with Symbolic and PrettyPrint support
Post by: Silver Shadow on June 09, 2010, 04:04:57 pm
*bump*
Here you go, you can now have all the details in my 1st post!
Title: Re: AutoCalc - App Version with Symbolic and PrettyPrint support
Post by: DJ Omnimaga on June 09, 2010, 10:54:33 pm
Oooh I see now, I saw that the other night on TI-BANK. Nice stuff. Make sure to ask him permission first tho ;D

It would be nice to be able to turn our 84+ into a CAS. And TI can't do anything to prevent its distribution (for example if they wanted to keep their CAS models' sales up).
Title: Re: AutoCalc - App Version with Symbolic and PrettyPrint support
Post by: Silver Shadow on June 10, 2010, 02:07:25 am
It says in the readme that as long as I give credit to him, I can use his programs as I want.
Title: Re: AutoCalc - App Version with Symbolic and PrettyPrint support
Post by: DJ Omnimaga on June 10, 2010, 02:33:57 am
Aaah good to hear :)
Title: Re: AutoCalc - App Version with Symbolic and PrettyPrint support
Post by: Silver Shadow on June 10, 2010, 08:14:02 am
*bump*

And voilĂ , I've finally finished! Check out the app and instructions in my 1st post!
Title: Re: AutoCalc - App Version with Symbolic and PrettyPrint support
Post by: Raylin on June 10, 2010, 09:02:32 am
Uhm.

Maybe I fail but all the calculations I've put in give me syntax errors.

(X+2)^2
(X+X)
X+2+X
X+X

EDIT: 500th post!
Title: Re: AutoCalc - App Version with Symbolic and PrettyPrint support
Post by: Silver Shadow on June 10, 2010, 09:06:00 am
When I meant calculations, I meant things like "(e^3/2)*Pi". If you want to make calculations with X, use the SIMP: function instead.
Title: Re: AutoCalc - App Version with Symbolic and PrettyPrint support
Post by: DJ Omnimaga on June 10, 2010, 09:34:16 am
nice to see this released ^^

Sadly it won't be much use for me since I've been out of math classes for 7 years but it should help others a lot :)
Title: Re: AutoCalc - App Version with Symbolic and PrettyPrint support
Post by: ztrumpet on June 10, 2010, 10:05:27 am
This sounds pretty neat. :)  What math class is this most useful for? 
Nice job. ;D
Title: Re: AutoCalc - App Version with Symbolic and PrettyPrint support
Post by: Silver Shadow on June 10, 2010, 10:19:54 am
Minor update: the app now cleans up after itself.
Title: Re: AutoCalc - App Version with Symbolic and PrettyPrint support
Post by: Silver Shadow on June 10, 2010, 10:49:35 am
*bump* (excuse me for the double post)
File submitted to queue on ticalc.org and already available on TI-Bank.

NB: I also submitted some older programs on ticalc.org, such as "Link's Puzzle Challenge" and "xDCS GUI Editor".
Title: Re: AutoCalc - App Version with Symbolic and PrettyPrint support
Post by: ztrumpet on June 10, 2010, 11:29:30 am
Nice!  Do you know how long it will be for them to be on ticalc? :)
Title: Re: AutoCalc - App Version with Symbolic and PrettyPrint support
Post by: Silver Shadow on June 10, 2010, 11:44:24 am
Important update!!!

Fixed major bug which makes the app crash if you quit it without making any calculations! New file attached to 1st post.

@ztrumpet: No idea. But I hope it'll be today or tomorrow.
Title: Re: AutoCalc - App Version with Symbolic and PrettyPrint support
Post by: DJ Omnimaga on June 10, 2010, 05:36:07 pm
Glad to see this come out ^^
Title: Re: AutoCalc - App Version with Symbolic and PrettyPrint support
Post by: souvik1997 on June 10, 2010, 05:39:59 pm
AutoCalc is too slow for me to do any normal calculation. See if you can reproduce this:
e^([pi])*e^(6)
It never finished the calculation, even after I waited 6 minutes.
Title: Re: AutoCalc - App Version with Symbolic and PrettyPrint support
Post by: Silver Shadow on June 10, 2010, 07:02:10 pm
AutoCalc isn't perfect, and a lot of non-standard or complex calculations don't work. The readme of the main engine specifies that if AutoCalc is having trouble with a calculation, try separating it into several pieces.
Title: Re: AutoCalc - App Version with Symbolic and PrettyPrint support
Post by: DJ Omnimaga on June 10, 2010, 07:04:16 pm
I think the issue is that it's written in BASIC for the most part, but I still find it great for the most part. It's nice we can now have an entire CAS on non-cas models without having to open our wallet
Title: Re: AutoCalc - App Version with Symbolic and PrettyPrint support
Post by: Levak on June 11, 2010, 05:46:32 am
It says in the readme that as long as I give credit to him, I can use his programs as I want.

Ok... but where are these credits in your mod ?
You also destroyed all the Documentation related to Autocalc, either it has been remoded, but I think that you could let it in the zip with a link directed to the original program, no ?
Title: Re: AutoCalc - App Version with Symbolic and PrettyPrint support
Post by: critor on June 11, 2010, 06:09:09 am
AutoCalc is too slow for me to do any normal calculation. See if you can reproduce this:
e^([pi])*e^(6)
It never finished the calculation, even after I waited 6 minutes.


AutoCalc handles some kinds of numbers, and "6+Pi" is not handled.
(see the doc in the original program)

Here are all kind of numbers handled by the 3.0 algorithms:
(http://i63.servimg.com/u/f63/13/23/13/53/autoca11.gif)


I've tried on my TI-84+SE, and the app-version is much slower than the program-version.
(I'd say 1.5 to 2 times slower...)

But it may be because it's executed in ROM instead of RAM ?
Title: Re: AutoCalc - App Version with Symbolic and PrettyPrint support
Post by: DJ Omnimaga on June 11, 2010, 09:29:35 am
(mhmm it might be a good idea to include the entire original readme renamed to original_readme.txt or with a small notice about what Silver changed with the program indeed)

Also I am not sure but I think I remember reading something somewhere saying that the larger the amount of sub-programs included in a BASIC Builder APP, the slower it gets. That might explain the slow downs.

Also does Basic Builder APPs run on OS 2.53MP?
Title: Re: AutoCalc - App Version with Symbolic and PrettyPrint support
Post by: Galandros on June 11, 2010, 09:34:17 am
Interesting program.
I did some TI-BASIC programs that resemble those features.
Maybe I should try to rewrite the program to be faster. And there is useful assembly code for helping out the task. (like a number to string converter)
Title: Re: AutoCalc - App Version with Symbolic and PrettyPrint support
Post by: Silver Shadow on June 11, 2010, 10:22:00 am
It says in the readme that as long as I give credit to him, I can use his programs as I want.

Ok... but where are these credits in your mod ?
You also destroyed all the Documentation related to Autocalc, either it has been remoded, but I think that you could let it in the zip with a link directed to the original program, no ?
The credits appear when you exit the app (by this I mean typing QUIT).
I also wanted to include the original program in a seperate folder inside the zip file, but I completely forgot. I'll try to do this as soon as possible. Done. I also added the credits into the readme file.

I've tried on my TI-84+SE, and the app-version is much slower than the program-version.
(I'd say 1.5 to 2 times slower...)

But it may be because it's executed in ROM instead of RAM ?
I don't know exactly how BasicBuilder functions, so it's maybe due to that. But I think that a part of the slowdown is because my version first interprets the input, so as to call the Symbolic functions when needed, and only after analyzing the inputted string does it decide to launch the CAS engine.
I checked, the part that interprets the input is almost instant. The problem must be in how Basic Builder works.
@DJ Omnimaga: If you're right about that a large number of programs slows down BasicBuilder, then I'll try to reduce them. The next version will be with less programs.

Also does Basic Builder APPs run on OS 2.53MP?
Yes they do. But don't try running my app with the latest beta of DCS being present on the calc: it won't work.
Title: Re: AutoCalc - App Version with Symbolic and PrettyPrint support
Post by: Silver Shadow on June 11, 2010, 11:17:53 am
*bump*

Update:
-some bug fixes
-cleans up correctly after itself
-should be faster (if having less programs to package solves the problem)
-includes original version of AutoCalc
-added credits in readme
Title: Re: AutoCalc - App Version with Symbolic and PrettyPrint support
Post by: critor on June 11, 2010, 11:18:59 am
*bump*

Update:
-some bug fixes
-cleans up correctly after itself
-should be faster (if having less programs to package solves the problem)
-includes original version of AutoCalc
-added credits in readme


Thank you very much.
I'm going to try...


Do you have a link ?
Title: Re: AutoCalc - App Version with Symbolic and PrettyPrint support
Post by: Silver Shadow on June 11, 2010, 11:30:35 am
Yes, download it from the 1st post in this topic.
Title: Re: AutoCalc - App Version with Symbolic and PrettyPrint support
Post by: ztrumpet on June 11, 2010, 12:23:25 pm
Also I am not sure but I think I remember reading something somewhere saying that the larger the amount of sub-programs included in a BASIC Builder APP, the slower it gets. That might explain the slow downs.
I'd use only one program, because in basic builder each time a subprogram is run it does something kind of like this:
Code in the App says:
:prgmA
App runs something kind of like this (In the example I'm using XCopy by Iambian):
:0->X
:"prgmA
:Asm(prgmXCOPY
:prgmXTEMP001

You can see how that's slower.  That's basically what Basicbuilder does. :D
Title: Re: AutoCalc - App Version with Symbolic and PrettyPrint support
Post by: mapar007 on June 11, 2010, 12:24:45 pm
Very interesting application you have there... Kudos!
Title: Re: AutoCalc - App Version with Symbolic and PrettyPrint support
Post by: ztrumpet on June 11, 2010, 12:28:47 pm
I just tried it.  Excellent program!  I'm pretty sure this is going on my calc for Pre-Calc next year.  Thanks! ;D
Title: Re: AutoCalc - App Version with Symbolic and PrettyPrint support
Post by: Silver Shadow on June 12, 2010, 09:40:59 am
It is now available on ticalc.org along with Link's Puzzle Challenge and a beta of my abandonned xDCS GUI Editor!!!

BTW, DJ, I tried adding it to the Omnimaga downloads section as well, but when I try submitting it, it says that the author info is empty, but I don't see this author blank anywhere! Would you mind fixing that problem? Thanks.
Title: Re: AutoCalc - App Version with Symbolic and PrettyPrint support
Post by: DJ Omnimaga on June 12, 2010, 01:17:58 pm
When uploading, did you go directly in the download section category you wanted to put the file in? If you simply went anywhere, clicked adding a file then selected a category in a drop down there, that will most likely not work, due to a bug with the download system. If you did the former then I am afraid I cannot fix the problem myself. You will need to report it at http://www.simplemachines.org/community/index.php?topic=203471.0 :(

Also we do not accept school studies related program in our downloads sections anyway (same for our projects and featured projects). See this (http://ourl.ca/3241/60019). I'm trying to keep Omnimaga as game-oriented as possible, which is what makes it unique in some ways.
Title: Re: AutoCalc - App Version with Symbolic and PrettyPrint support
Post by: Silver Shadow on June 12, 2010, 04:12:29 pm
Ah OK, never mind then. I'll just put a link to the file from ticalc.org in my first post.
Title: Re: AutoCalc - App Version with Symbolic and PrettyPrint support
Post by: DJ Omnimaga on June 12, 2010, 11:32:27 pm
Ok. ^^

We're kinda like MaxCoderz and Revsoft in some ways, except more TI-BASIC-oriented than ASM