Professional Documents
Culture Documents
Memento of Useful Tips and Tricks For HP50g
Memento of Useful Tips and Tricks For HP50g
Abstract This document presents a short list of math. important commands on HP50g. There is not much documentation about HP50g on Internet, so it completes the users manual (see [HP06]).
Commands 1. axl(vector or list ): converts vector to list and reciprocally. 2. dene(f (a, b, , y ) = f (a, b, , y )): denes f (function of more than one variable). 3. cnrm(A): gives A 1 . 4. cond(A): gives the condition number of A (implemented as (A) = A A1 ). 5. deriv(P(x, y, z ),[x, y, z ]): (P(x)). gives 15. isol(f (t) = 0,t): nds solutions of f (t), by isolating t. 16. ker(M ): gives ker M . 27. pcar(M ): gives the characteristics polynomial of M , assuming M is a square matrix.
17. lagrange([[x1 , x2 , x3 , ], [y1 , y2 , y3 , ]]): 28. rnrm(A): gives A . gives a Lagrange polynomial interpola29. signtab(f (x)): gives infor. on the sign tion. of f (x) through its domain. 18. lap: Laplace transform: L[f (t)] = F (s). 19. lapl(P(x, y, z ),[x, y, z ]): 2 (P(x)) = (P(x)). gives 30. simult(): allows > 1 functions to be plotted simultaneously. 31. solve(P(u) = c, u): isolates variable, nds solution(s). 32. solvex(P(x) = c): nds solution(s). 33. subst(f (x), g (x)): veries if g is a solution of the O.D.E. f (x). 34. subst(f (x),a): gives f (a). 35. tabval(f (x),{a b}): gives range of f (x) between a and b. 36. tabvar(f (x)): f (x). complete analysis of
6. desolve(g (f (x)),f (x)): solves any differential equation, if possible, if f (x) is the unknown. 7. egvl(M ): gives the eigenvalues of M . 8. egv(M ): gives the eigenvectors and eigenvalues of M . 9. f (x, y ): gives f (x, y ). 10. factormod(P (x)): gives the factorization of a given P (x) polynomial. 11. idn(n): gives In . 12. image(M ): gives im M . 13. ilap: inverse Laplace L1 [F (s)] = f (t). transform:
20. ldec(g (x),fh): gives the general solution of a linear ODE (with constant coe.). 21. lim(f (x), a(+0)): limxa(+ ) f (x). 22. linsolve([P1 (x, y ), P2 (x, y )], [x, y ]): solves P1 (x, y ) and P2 (x, y ), according to x and y . 23. lu(M ): gives a Crout LU decomposition of M , using partial pivoting. 24. mad(M ): gives, in RPN mode: det M , M 1 , matrix coecients of p(x) so (x I A) p(x) = M (x) I , and the characteristic polyn. of M . 25. modsto(x): changes the current modulus to x. 26. partfrac(f (x)): gives the decomposition of the rational f (x) fraction into partial fractions. 3 Built-in Shortcuts
37. taylr(f (x),x,a): gives a Taylor series expansion of f (x), for the order a. 38. tran(M ): gives the transposate of the M matrix. 39. trn(M ): gives the transconjugate (adjoint) of the M matrix. 40. vandermonde(n o p): generates V .
14. invmod(x): performs the inverse of x modulo the current modulus. 2 Plotting Functions
1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. 13. 14. 15. 16. Bar: for plotting simple bar charts.
1. R-shift HOLD Enter: changes between exact and approximate mode. 2. Down: opens appropriate editor for item on level one of the stack or history. 3. Right: swaps items on level one (RPN ).
Conic: for plotting conic equations (circles, ellipses, hyperbolas, parabolas). Di Eq: for plotting the numerical solution of a linear differential equation. Fast3D: for plotting curved surfaces in space.
4. Up: accesses stack or history. Similar to HIST button. Function: for equations of the form y = f (x) in plane Cartesian coordinates. Gridmap: for plotting real and imaginary part traces of a complex function. Histogram: for plotting frequency histograms (statistical applications). Parametric: for plotting equations of the form x = x(t), y = y(t) in the plane. Polar: for equations of the from r = f () in polar coordinates in the plane. Pr-Surface: for parametric surfaces given by x = x(u, v), y = y(u, v), z = z (u, v). 9. L-shift HOLD TOOL: toggles real/complex mode. Ps-Contour: for plotting contour plots of surfaces. Scatter: for plotting scatter plots of discrete data sets (statistical applications). Slopeeld: for plotting traces of the slopes of a function f (x, y) = 0. Truth: for plotting inequalities in the plane. Wireframe: for plotting curved surfaces in space showing wireframe grids. Y-Slice: for plotting a slicing view of a function f (x, y). 13. L-shift HOLD UPDIR: goes back to home, no matter how far down in a directory you are. 10. R-shift Function keys: recalls object. 11. L-shift Function keys: stores object (RPN ). 12. L-shift HOLD PREV: jumps to the last menu you were in. (So if you go from the PRG menu into the MTH menu, this will jump back to the PRG menu.) 5. Left: starts picture view to look at last graph or picture. 6. R-shift Down: displays full names of items in soft menu. 7. R-shift Right: X-modem server mode. 8. R-shift HOLD Right: Kermit server mode.
Common Problems
If you encounter problems with this calculator, many solutions could help you. Here they are: 1. To restart the calculator if there is a bug, press ON , F1 , F3 and wait a few seconds; 2. A more powerful solution is to press ON , F1 and F6 . Then, you can press F1 (yes) if you want the calculator to try to recover the data in \HOME; if you simply want it to erase HOME directory (and the port 0), press F6 (no); 3. If you think a library has a problem, you can press ON , F3 and ; 4. If there is a real problem, remove the batteries. Replace them immediately if you do not want to lose any information. 5
5.1
To allow the calculator to receive data, you have to press Right Shift (the red shift button) and the right arrow.
5.2 Using Microsoft Windows c
If you are using Microsoft Windows c , you can use the software called HP48g, 49g, 50g series Calculator Connectivity Kit, edited by HP.
5.3 Using Linux
Evidently, if you are using Linux, it is a little bit more fair-haired, as habitually. If you use Ubuntu or another Debian-like distro, you can simply type apt-get install ckermit in a shell, with super-users rights. For other distros, you can use the following bash script, which will install kermit, or make it yourself. #!/ b i n / bash i f [ $UID != 0 ] ; then echo you need t o be r o o t t o i n s t a l l c k e r m i t exit fi i f [ x / u s r / b i n / wget ] ; then echo c k e r m i t download ; e l s e echo wget i s not i n s t a l l e d on your computer exit fi wget f t p : / / k e r m i t . columbia . edu/ k e r m i t / a r c h i v e s / cku201 . t a r . gz mkdir / u s r / l o c a l / s r c / k e r m i t mv cku201 . t a r . gz / u s r / l o c a l / s r c / k e r m i t cd / u s r / l o c a l / s r c / k e r m i t t a r x v f z cku201 . t a r . gz make l i n u x make i n s t a l l echo c k e r m i t has been i n s t a l l e d on your computer With a not Debian-like distro, you continue using chmod +x ckermit_install.sh && ./ckermit_install.sh Whatever the distro, you launch kermit using kermit -l /dev/ttyS0 where S0 is replaced by S(x 1), x being the COM port where your calculator is located on your computer, and without braces. In kermit, begin by typing the following text. set carrier-watch off robust You can now send and receive les with your calculator. To send a le, type send, followed by the name of the le. To be in server mode, just type server: kermit will wait a le to be sent by the calculator, if any.
As you know, this calculator works on batteries. Anyway, you can use rechargeable batteries. Furthermore, you can power the calculator using the USB cable. Just plug it into the calculator and connect the USB cable to your computer. It should work. To test this, you can press ON , and F6 , simultaneously. Then, press 8 . It should display something like USB POWER WORK. As you have noticed, the system menu has many functions, which are intuitive. 7 Installing Libraries
Libraries must be distingished from simple programs. They may be necessary for some of your programs. They always end with a .lib. The simplest way to install a library is to put it on a storage folder in your calculator (using tools described above). They then need to be copied (or moved, as you want), using the ler, in the FLASH, so in port 2:FLASH. After this, just make a soft-reset, pressing simultaneously ON and C . Your librairies are now available through the LIB menu. 8 Installing Programs
When downloading a program, be sure that you do not need a special library to make it work. If you have installed the library/librairies it depends on, put your program in the APPS directory (in /HOME) in the calculators storage. You can access it using VAR menu if you are in Algebraic mode. If you use RPN, it will only show the stacks state after the call to your program. A general way to launch your program is to go through your les folder, and press EVAL when the cursor is on the program you want to launch. 9 Modifying KEYTIME
The KEYTIME variable represents the the number of ticks (assuming 1 second is equivalent to 8192 ticks) that a repeated press of the same key will be ignored for, with a range of 0 through 4096. Thus, if you think the calculator is too slow with your input, just modify KEYTIME var, following (e.g. in RPN mode) this procedure: 1. Type your new KEYTIME value; 2. Press ENTER ; 3. Type KEYTIME; 4. Press STO . You can also type, directly <<500->KEYTIME>>. To make this value remaining after a reset, you can create a variable (containing this) called STARTUP in the HOME directory; STARTUP is run each time the calculator is reset. To check the value of KEYTIME, you can simply press CAT , scroll down to see KEYTIME , and press OK when it is selected. 10
10.1
Strange Facts
Rational Proper Fractions
Consider the rational fraction x It is proper, and one can easily notice that
1 . x(x + 1)
1 1 1 = . x(x + 1) x x+1 It is easy to nd, but HP50g cannot nd this, using PARTFRAC function.
10.2 Antiderivatives
1 . ex 1
1 dx. ex 1
1 , ex 1
However, the HP50g cannot do this. Lets use IBP, this function being continuous on ]0; +[. We then have f = Dg = 1, g x. Thus, Z Z x x ex dx dx = x + u = ex 1 x x 2 e 1 e 1 (e 1) du = ex and x = ln(u + 1) Z x ln(u + 1) = x + du. e 1 u2
Df = (ex 1)2 ex ;
1 ; u+1
Dg =
1 , u2
1 . It yields that g u
The antiderivative is thus Z Z dx x ln(u + 1) = + du ex 1 ex 1 u2 x ln(u + 1) x + ln |u| ln |u + 1| e 1 u x ln(ex 1 + 1) = x + ln |ex 1| ln |ex 1 + 1| e 1 ex 1 x ln(ex ) = x x + ln |ex 1| ln |ex | e 1 e 1 ex 1 . = ln ex
References [cal09a] Business support forums - slow type with HP 50g calculator, 2009. http://forums11.itrc.hp.com/service/forums/bizsupport/ questionanswer.do?admit=109447626+1244141423458+28353475&threadId=1162038. [cal09b] Where is Hp 50gs KEYTIME command?, 2009. http://www.physicsforums.com/showthread.php?t=157969. [dar09] Transfert sous Linux, 2009. http://www.hp-network.com/docs/transfert_linux/linux.php. [geo09] Hewlett Packard Calculator Tips & Tricks, 2009. http://www.geocalc.com.au/tips. [HP06] HP. HP50g Graphing Calculator Users Guide, 2006. http://smendes.com/hp50g.pdf.