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 calculator 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 size on the PC, triple it and add 30 to get the size on the calculator". If you're interested - the precise relationship is y = 2.936x + 33.137, where x is the number of bytes on the PC and y is the number on the calculator. This had a correlation of 0.9938, which is very high. Note that this investigation was
done on the original 38G. I would expect that the relationship would be similar
on any of the later models. 51. Is it possible to convert to other number bases on the the calculator? 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 HP 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 :).Question submitted by: Various people over the past 2 years. 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 view not into the APLET view. 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. Update 24/12/02: A new aplet has recently been released for the HP39G called Library L1542 which will let you do conversions really easily and far better than my programs. See the Misc Aplets page to download a copy. Update 24/11/07: I've never had the time to check whether this library will
work on later models such as the 39g+, 39gs and 40gs. If you try it an can
answer this question please let me know. 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. This works for any function, not just for F1(X).53. How can I transfer data from columns or lists on the calculator 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 transferring the data in a readable form is to use the only calculator object which is NOT stored in binary on a PC - a program.
Now press 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'
rather than just *.xls files otherwise the file you want will not be visible. Once you have pasted the data into Excel you will find that it has been imported as a row. This is not always convenient and you may wish to change this to a column. To do this just highlight the row of data and Edit -> Copy it. Reposition the cursor to the cell where you would like the column to start. Now do an Edit ->Paste Special. In the box which pops up you need to tick the box labelled 'Transpose' (see right). . Meanwhile you need to use the File/SaveAs command 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 the ADK (or as a last resort Windows Notepad) to open and edit the file you transfered from the calculator. DO NOT use any other editors as they can 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 calculator. If you're using Windows Notepad then don't play around with the characters at the top of the file! Transfer the program back to the
calculator. In the Program view, EDIT the program and put a
54. How can I edit notes using the ADK?Answer: Very easily (as of May 2002) using ADK39. Just go to my Utilities page and download the program. 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. You need a cable to connect to the PC. The Connectivity software does the transfer to and from the PC. The ADK39 does the editing on the PC.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 HP 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 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 metaphorically shrugs 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.Note: If you are using an aplet and strange things have started to happen then click here before continuing.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 all models but it only appears in the STAT list on the later models. 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 constrained 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. -32 to 32 or -3.2 to 3.2 would also be good. 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 calculators 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 and later models added others.Some of these are:
SYSEVALS: LIBEVAL |
Last modified: 19 Dec 2007 Sitemap Home Contact Me |