40. A: How long does it take to write an aplet and does this decrease with time? I don't have any great programming experience.Question submitted by: Chris
Patterson B: I am teaching fulltime so my only "free" time is weekends and holidays. Is there a learning curve? (Will my second aplet only take half as long to write?). Yes - graph F1(X)=(2*e^(-0.5*X^2)+1)/(X>0) to see it! ;-) Seriously, for me there was a definite curve like the above one but that may be because I already program in many languages and so the main time for me was just learning the oddities of a new one. My main hassle now is in coming up with the ideas for new aplets - I've used all the obvious ones and some of the others I would like to be able to do are not possible due to limitations on memory and on the language itself (it has some VERY frustrating lacks!). C: How many people do you know (or know of) who are actively writing aplets? Are they teachers or do they work for HP? Umm... there's me and .... um... there's.... Actually there are about 4 or five of us in Western Australia but that's about all. For people who have written more than one or two aplets, there's only me. If you have a look at my
Maths aplets
download page you'll see that there are a few aplets which have been
written by others but most are by me. The original set of 50 aplets made
available by HP when the HP38G was released were written under contract and
I have no idea who wrote them. Some are very good, some are not. One of
the people in HP (Charles Lim) was a bit more visionary than the others and
had
Quadratic Explorer and Trig Explorer written by some HP programmers (programmed
by Jean-Yves Avenard & Cyrille de Brebisson and designed by me, Charles Lim
& Bob Parker) but this is all there are ever likely to be from HP since
their focus has shifted to other things. 41. Why to the ApLets on your webpage not have a .SV program whereas the HP ones do?Question: I was recently zapped an aplet.
It works OK but what surprises me is that it has 5 programmes associated
with it, and I can see what each of them does, but none of them is a set
views although there is a customised views with the aplet, and none of them
seems to be the overall control programme, so where would these be hidden?
They are obviously there because they're working, but I can't find them.
Answer: It has to do with whether you write the aplet using the the ADK (Aplet Development Kit) or on the calculator. If you write it on the calculator then the process is to copy a standard aplet and then run the SETVIEWS command in a program with an extension of .SV to modify the VIEWS menu. Although all the aplets in HPs collection keep this .SV program it is in fact no longer needed once the VIEWS menu has been altered - the changed version is stored as part of the aplet and is preserved in SENDing from one calculator to another or to a computer. Hence, once an aplet is written, you can delete the .SV program with no effect, except that the way the SETVIEWS command is written in most of the HP aplets, it includes the .SV program in the list of views it expects and so there is potential for it to report a missing program if you were to delete the .SV program as I mentioned. If, on the other hand, you use the aplet Development Kit, then it sets
the VIEWS menu directly into the structure of the aplet and no SETVIEWS
command is ever needed (or normally desirable). Hence there is no .SV
program in any of my aplets (except one or two that I wrote on the 38G
before I found the ADK). The only exception to this is one I wrote which
modifies the VIEWS menu 'on the fly' and so requires extensive use of the
SETVIEWS command to do this. 42. Is there a way to free up more than 23K on the HP38G?Question: Is there a way to free up more
that 23K on the HP 38G? Thats all it starts with, and I need more! Is it
possible to delete some built in programs that I never use? Answer: It can't be done without
physically modifying the calculator. The six built in aplets are there to
stay and, when they are in action, their 'environment variables' take up so
much room that there's only 23K left. There's a guy in Germany, Detlef
Muller, who is able to modify a 38G so that it has 64K of memory instead of
32K. This would mean that there would be 55K left after the environment is
subtracted. Unfortunately the problem is that the process is not cheap (requires
special knowledge and equipment) and you run a chance of losing your whole
calculator in the process - a very expensive way to end up with a hunk of
plastic. There's also another person (also in Germany) who can modify your
calculator so that it has up to 128K (256K?) but still only in 'banks' of
32K - you have to flip a switch to change from one bank to another and the
different banks are invisible to each other. Although I've not had formal
contact with him I would assume that the same risk of damage applies. 43. Are there any games for the HP38/39G?Yes - you can find some of them on my
games page.
Beware - your teacher is NOT going to be impressed if you play them in class!
44. I'm having problems downloading aplets with the cable.Question: I got the cable and I got the
HP Connectivity Kit, but I can't seem to get things to transfer. I can take
a screen shot just fine so it must be connected but when I do a file
transfer it says "unsuccessful transfer" where do I put the files which are
going to be transfered?? Answer: Firstly go to my Utilities page and download the help file. Try looking at my trouble shooting instructions. They may help. In your case the fact that you can do a screen capture is encouraging in that it indicates that you must have your port configured correctly. Unfortunately you may have a computer on which you can capture screens but not download aplets. I've only found one computer like this (my old one) but who knows. On the other hand, you may just have low batteries on your 38G - even before the low battery warning appears the first thing that goes is communication. Test whether you can upload an aplet (I could upload but not download - I had to use Kermit instead). Create an aplet on the 38G (SAVE in LIB view under a different name). Create an empty folder on your PC. Run the Connectivity software, change into that empty folder and click on File Transfer button. Goto LIB view, click on SEND. When it asks if it should initialise say 'Yes'. See if the transfer works. If it does then try downloading. Click on File Transfer again. Delete the aplet from your LIB view. Click on RECV and see if you can get it back. You may find that you can. On my computer I could sometimes download aplets that I had just uploaded, but not ones that had been downloaded from the web. I really don't know why - it was very annoying! Another possibility is that your serial port is locked out by the system
administrator (if it is part of a network). It doesn't sound like it though,
because if that were the case then I would not expect you to be able to do
screen captures either. 45. How can I find out the available memory on the HP38G?Question: Hello, I'm 16, I live in
France and I'd like to know the avilable memory on my HP38G. I hope you'll
be able to answer my question... Answer: Try looking here for a small program to show the available memory. Warning: DON'T USE THIS ON AN HP39G! IT WILL
LOCK UP THE CALCULATOR AND CAUSE MEMORY LOSS. 46. What are all of the beeps when translated into music notes?Answer: The best method of investigating this is to have a look at a program that I wrote to play our school's hymn (don't laugh - it was a joke & you haven't lived until you've heard a massed choir of 38Gs playing instead of an organ). You can download the program by looking here. Download the ZIP file and look at a file called HYMN3890.000 Basically the idea is to establish a base note (in the example below I've used C) and then use a geometric ratio to create the rest of the notes in the scale. The length of a note is also established and stored. Doing it this way has a number of advantages. Firstly, you can change the speed of the music by just changing the one line which stores the length of a note into Z. Secondly, you can change scale by changing the base frequency. Thirdly, you can really easily see what notes you're using when you're recording the music. This makes it easier to find errors and saves a lot of room in the program. It also looks better to any music student. Note: In the code below, 'STO' means the STOre symbol (from the CHARS menu). 0.5 STO Z: The length of one note. BEEP G;Z: Play G for one note. 47. How can I graph piecewise defined functions?Question: I wonder if you can help. I
have been trying to plot piecewise functions on the HP and cannot work out
how to enter functions with a restricted domain. Maybe the instructions are
somewhere in the Manual, but I cannot find them. Answer: I always used to use the IFTE function (see my manual) but I was recently told about a really nice technique that another teacher (Alan Cadby) came up with to graph restricted domains. Simply divide the function by the domain. The advantage of this is that in the areas where the domain evaluates as false(zero) then you get an UNDEF. answer and the calculator does not show an 'asymptote' as it drops to zero.
48. Why does entering a function of X(X+2) give an error message?Answer: Normally the calculator
will realise when you are using an 'implied multiplication' 49. How can I get "lower tail" instead of "upper tail" values for the Normal distribution using the UTPN function?Question: Did you know that (mean,
variance, value) gives the upper tail of the normal distribition but if you
change the order to; (value, variance, mean) it gives the lower tail of the
normal distribition?
|