50. Is there a way to predict how much memory a program will take up?I recently began to wonder if there was an easy relationship between the size of the program on the computer (in bytes) and the size of the program after it is transferred to the 38G and run (for those who don't know, the first time you run a program an additional copy is created in machine language - that's why it's slow the first time but fast after that). I checked for the programs I had done up to that point and found (to my surprise) that there was a VERY clear relationship - I was expecting some linkage but not so strong as I found. A rough rule is: "Whatever the sizeon the PC, triple it and add 30 to get the size on the 38G". Since you only have (approx.) 23500 bytes available then this will help you keep track of how many more you can fit in. If you're interested - the relationship is y = 2.936x + 33.137, where x
is the number of bytes on the PC and y is the number on the 38G. This had a
correlation of 0.9938, which is very high. 51. Is it possible to convert to other number bases on the the 38/39G? In particular, binary and hexadecimal?Question: I'm a sci/eng student
from UWA, and was wondering if there were any programs/ApLets available
which allow you to work with numbers of different bases. Unlike most other
scientific calculators, the 38G seems to have forgotten about base
conversions. In engineering, where converting between decimal, binary and
hexadecimal numbers is essential, it would be extremely handy to have a
function on the calculator to do it for me!! Any advice or direction would
be appreciated :). Answer: I agree that it's a pity that they didn't include
a function for it in the MATH menu. I wrote two programs which convert from
any base to 10 and from 10 to any base respectively. Click
here
to download them. Note that they are programs not aplets - they must
be downloaded using the Connectivity Kit into the Program Catalogue not into
the LIBrary. If you don't have the Connectivity Kit and have to type it in
yourself, then you can find the two programs displayed as images
here along
with a large collection of other small programs. 52. How can I transfer the fit equation from the 2VAR Statistics PLOT view to the Function aplet?Answer: (Courtesy of Mark Howell) Once you have found the
equation of the line (or curve) of best fit in the PLOT view of the 2VAR
Statistics aplet, it is sometimes desirable to be able to transfer the
equation found to the Function aplet. Of course you can always type it in
by hand but there is an easier way. Just go to F1(X) and enter the equation
PREDY(X). Now move the highlight back to F1(X) and press EVAL. The
equation will appear. 53. How can I transfer data from columns or lists on the 38G to a PC so that it can be used in Excel or some other application?Answer: The problem is that when you use the Connectivity software to transfer an aplet or a list (or a matrix) to a PC the result is stored in binary (1s and 0s). This is not readable by any other application, such as a spreadsheet. Nor is it in a form that is readable by you! The trick to transfering the data in a readable form is to use the only 38G object which is NOT stored in binary - a program.
Now press VALUE (SK4) so that the contents of C1 transfer instead of just
the name. You may have problems at this point due to lack of memory since
the data is now appearing in two places, C1 and the program. If this
happens there is not really much you can do to fix the problem. Now use the Connectivity software to transfer the program to a directory
on the PC. The result can be seen on the left. The file you want is the one
labelled DATASTOR.000 We need to open this file in Excel. Start Excel and
use the File -> Open command. You will need to change the file matching
criteria (see below right) so that the window shows 'All files' otherwise
the file you want will not be visible. . Meanwhile you need to save the Excel data in a special format called CSV, which stands for "comma separated". Once this has been done you can exit from Excel and open the CSV file in Notepad. Highlight the data, which should be separated by commas and use the Edit -> Copy command to transfer it to the clipboard. Now use Windows Notepad to open and edit the file you transfered from the 38G. DO NOT use any other editor as it will damage the file. Remove the dummy data, leaving the curly brackets in place. Paste the data from the CSV file into this position. Check carefully to ensure that the format of the list is correct for the 38G. Transfer the program back to the 38G. EDIT the program and, at the end
of the list of data, put a STO character and C1. This means that the
program now contains a command to STO the data into C1. RUN the program and
check that it has successfully transfered. Delete the program to save
memory. 54. How can I edit HP39G notes using the ADK?Answer: Very easily (as of May 2002) if you get the HP39G
version of the ADK, called ADK39. Just go to my
Utilities
page and download the file. If you don't yet have the Connectivity kit then
you can download both it and ADK39 in one package. Otherwise scroll down
until you find the ADK39 and download just that. 55. My calculator has locked up and I have important data on it that I don't want to lose.As calculators become more complex so do their operating systems (the way they 'talk' to you). The HP38/39/40G series has one of the most complex operating systems around and with greater complexity comes greater flexibility but also, sometimes, a little touch of instability. Teams of teachers and enthusiasts spend months before the calculators are released trying to crash them by doing the most ridiculous things they can think of, just so that when you do it, the calculator shrugs (metephorically) and says "Ok" rather than locking up and losing your data. But.... no matter how we try, we still miss some bugs. As I am writing this I have just sent a message to HP about a bug that I have found in the Solve aplet. It's not a serious one and I doubt you'd ever find it (I was playing) but there are surely others - we just can't think of every possible thing that users can do.
So what do you do if your calculator has locked up (frozen) and you have important information on it that you don't want to lose? First: Learn from this! The socket at the top of the calculator is there so that you can plug a cable into it and save your precious information onto a computer. DO IT! Go out and buy a cable - save your notes, programs and aplets regularly so that you won't worry if this happens again. Second: Try these possible remedies, in the order that they appear below.
56. What is 'RelError?'?The value of RelError is available on both the HP38G and the HP39G but it only appears in the STAT list on the 39G. On the HP38G you have to type RelErr into the HOME view to get its value. Suppose that you have a set of bivariate (2VAR) data which is not linear
and you have used the SYMB SETUP view to change to an exponential fit. Unlike the correlation coefficient, RelErr is not contrained to a range
from zero to 1, with 1 being best. RelErr has no upper limit and the lower
the value of RelErr, the better the fit is considered to be. 57. How can I get 'nice' values in the table when I use the split view of the Plot-Table view.If you use the default scale of -6.5 to 6.5 in the Plot-Table view then
you will find that the table values are not at all 'nice' values. The
reason is the pixels taken up by the stripe down the centre of the screen.
The answer is to use a scale of -6.4 to 6.4 instead. In actual fact, any
values that are powers of two will work. For example, a scale of -8 to 8
will give table values going up in steps of 0.25. See also how to get 'nice'
values in the normal PLOT view. 58. How can I easily display the roots of a polynomial?
59. What are "Easter Eggs" and do the HP38G or HP39G have any?An "Easter Egg" is a small hidden trick that programmers sometimes deliberately leave inside the finished product but which does not appear in the documentation. Generally it will be triggered by some combination of key strokes that would not normally occur. The programmers of the HP38G included a couple of these in the machine and those of the HP39G added others. Some of these are:
|