Download  Print this page

Advertisement

Preface
7KLV JXLGH FRQWDLQV LQIRUPDWLRQ RQ WKH DGYDQFHG IXQFWLRQDOLW\ RI WKH
+3 * ,W LV D VXSSOHPHQW WR WKH 3RFNHW *XLGH DQG 8VHUªV *XLGH WKDW LV
VKLSSHG ZLWK WKH +3 *
Material covered
7KLV JXLGH FRQWDLQV WKH IROORZLQJ LQIRUPDWLRQ
‡ &KDSWHU  (QWHULQJ FRPPDQGV FRQWDLQV LQIRUPDWLRQ RQ WKH
GLIIHUHQW ZD\V WKDW \RX FDQ HQWHU DQG XVH FRPPDQGV
‡ &KDSWHU  6\VWHP IODJV FRQWDLQV LQIRUPDWLRQ RQ XVLQJ WKH +3 *ªV
IODJV DQG WKH FRPPDQGV WR FRQWURO WKHP
‡ &KDSWHU  &RPPDQG OLQH RSHUDWLRQV LOOXVWUDWHV KRZ WR XVH WKH
FRPPDQG OLQH HGLWRU
‡ &KDSWHU  7KH VWDFN H[SODLQV KRZ WR RSHUDWH WKH FDOFXODWRU LQ 531
PRGH DQG KRZ WR PDQLSXODWH REMHFWV RQ WKH VWDFN
‡ &KDSWHU  0DWULFHV DQG OLQHDU DOJHEUD GHVFULEHV DGYDQFHG PDWUL[
RSHUDWLRQV DQG KRZ WR VROYH OLQHDU DOJHEUD SUREOHPV XVLQJ PDWULFHV
‡ &KDSWHU  8QLW REMHFWV FRQWDLQV LQIRUPDWLRQ RQ XVLQJ WKH 8QLWV
DSSOLFDWLRQ WR ZRUN ZLWK XQLWV LQ PDWKHPDWLFDO RSHUDWLRQV
‡ &KDSWHU  &RQVWDQWV OLEUDU\ FRQWDLQV LQIRUPDWLRQ RQ WKH OLEUDU\ RI
SK\VLFDO FRQVWDQWV WKDW \RX FDQ DFFHVV DQG XVH LQ FDOFXODWLRQV
‡ &KDSWHU  1XPEHU EDVHV FRQWDLQV LQIRUPDWLRQ RQ ZRUNLQJ ZLWK
ELQDU\ RFWDO DQG KH[DGHFLPDO QXPEHU EDVHV DQG ZRUNLQJ ZLWK ELQDU\
LQWHJHU DULWKPHWLF
‡ &KDSWHU  /LVWV DQG VHTXHQFHV FRQWDLQV LQIRUPDWLRQ RQ FUHDWLQJ
DQG ZRUNLQJ ZLWK OLVWV DQG VHTXHQFHV
‡ &KDSWHU  $GYDQFHG SORWWLQJ RSWLRQV SURYLGHV DGGLWLRQDO
LQIRUPDWLRQ RQ FUHDWLQJ DQG PDQLSXODWLQJ SORWV
‡ &KDSWHU  0HPRU\ FRQWDLQV LQIRUPDWLRQ RQ VWRULQJ DQG UHWULHYLQJ
GDWD XVLQJ OLEUDU\ REMHFWV DQG KRZ WKH +3 * PDQDJHV PHPRU\
‡ &KDSWHU  'DWH DQG WLPH DULWKPHWLF GHVFULEHV KRZ WR ZRUN ZLWK
GDWHV DQG WLPHV
‡ &KDSWHU  &XVWRPL]DWLRQ GHVFULEHV KRZ WR FXVWRPL]H WKH
NH\ERDUG DQG KRZ WR FUHDWH PHQXV
Preface
Page vii

Advertisement

   Also See for HP 49G

   Related Manuals for HP 49G

   Summary of Contents for HP 49G

  • Page 1 Preface 7KLV JXLGH FRQWDLQV LQIRUPDWLRQ RQ WKH DGYDQFHG IXQFWLRQDOLW\ RI WKH +3 * ,W LV D VXSSOHPHQW WR WKH 3RFNHW *XLGH DQG 8VHUªV *XLGH WKDW LV VKLSSHG ZLWK WKH +3 * Material covered 7KLV JXLGH FRQWDLQV WKH IROORZLQJ LQIRUPDWLRQ ‡ &KDSWHU  (QWHULQJ FRPPDQGV FRQWDLQV LQIRUPDWLRQ RQ WKH GLIIHUHQW ZD\V WKDW \RX FDQ HQWHU DQG XVH FRPPDQGV ‡...
  • Page 2 ‡ &KDSWHU  &RPSXWHU DOJHEUD FRPPDQGV GHVFULEHV HDFK RI WKH FRPSXWHU DOJHEUD FRPPDQGV WKDW WKH FDOFXODWRU FRQWDLQV DQG ZKDW HDFK FRPPDQG GRHV The HP 49G documentation set 7KH +3 * GRFXPHQWDWLRQ VHW LV D PL[WXUH RI KDUG FRS\ GRFXPHQWDWLRQ DQG GRFXPHQWDWLRQ DYDLODEOH IURP WKH +3 &DOFXODWRUV ZHE VLWH <RX FDQ ILQG DOO RI WKH GRFXPHQWDWLRQ IRU WKH +3 * RQ WKH +3...
  • Page 3 Chapter 1 Entering commands 7KHUH DUH D QXPEHU RI ZD\V \RX FDQ HQWHU D FRPPDQG ‡ E\ SUHVVLQJ WKH NH\ RU NH\V IRU WKH FRPPDQG ‡ E\ VHOHFWLQJ WKH FRPPDQG IURP D VXEMHFWVSHFLILF PHQX ‡ E\ VHOHFWLQJ WKH FRPPDQG IURP WKH FRPPDQG FDWDORJ ‡...
  • Page 4 ‡ XQLWV PHQX >ø ‡ DULWKPHWLF PHQX <! ‡ FRPSOH[ QXPEHU PHQX >ó ‡ EDVH PHQX >ì  7KHVH VXEMHFWVSHFLILF PHQXV KDYH NH\V DOORFDWHG WR WKHP RQ WKH NH\ERDUG 7KHUH DUH PDQ\ RWKHU VXEMHFWVSHFLILF PHQXV )RU H[DPSOH WKH PDWK PHQX DQG WKH YDULRXV &RPSXWHU $OJHEUD 6\VWHP VXEPHQXV FDQ EH VHOHFWHG IURP WKH $SSOLFDWLRQV PHQX  3UHVV g 7KH $SSOLFDWLRQV PHQX LV GLVSOD\HG...
  • Page 5 Entering a command from a sub-menu  :LWK WKH PDLQ PHQX GLVSOD\HG KLJKOLJKW WKH QDPH RI WKH VXEPHQX <RX FDQ GR WKLV E\ ‡ SUHVVLQJ ] XQWLO WKH VXEPHQX QDPH LV KLJKOLJKWHG RU ‡ SUHVVLQJ WKH QXPEHU NH\ WKDW FRUUHVSRQGV WR WKH QXPEHU RI WKH 5($/ VXEPHQX )RU H[DPSOH WR KLJKOLJKW WKH VXEPHQX LQ WKH...
  • Page 6 Command catalog 7KH +3 * SURYLGHV D VLQJOH FKRRVH OLVW WKDW FRQWDLQV DOO LWV FRPPDQGV 7KLV LV FDOOHG WKH FRPPDQG FDWDORJ Displaying the command catalog  3UHVV N $ FKRRVH OLVW LV GLVSOD\HG 7KLV LV WKH FRPPDQG FDWDORJ  /RFDWH WKH FRPPDQG WKDW \RX ZDQW WR HQWHU 6HH WKH QH[W VHFWLRQ  3UHVV RU \...
  • Page 7 FRPPDQGV DUH GLVSOD\HG LQ \RXU FXUUHQWO\ VHOHFWHG V\VWHP IRQW ,I IRU H[DPSOH \RX KDYH FKRVHQ 6\VWHP  DV \RXU FXUUHQW V\VWHP IRQW \RX ZLOO VHH RQO\ IRXU FRPPDQGV SHU SDJH Searching for a command in the command catalog 7KH PDMRULW\ RI FRPPDQGV FDQ EH VHOHFWHG IURP WKH FRPPDQG FDWDORJ E\ VHDUFKLQJ RQ WKH ILUVW FKDUDFWHU RI WKH FRPPDQGªV QDPH  3UHVV WKH NH\V IRU WKH ILUVW FKDUDFWHU¦RU ILUVW IHZ FKDUDFWHUV¦RI WKH FRPPDQGªV QDPH...
  • Page 8 :KLOH WKH DOSKD NH\ERDUG LV DFWLYH \RX FDQ DOVR VHDUFK IRU D FRPPDQG WKDW EHJLQV ZLWK D VSHFLDO FKDUDFWHU E\ W\SLQJ WKDW FKDUDFWHU DQG WKHQ RQH RU PRUH RI WKH QH[W DOSKDEHWLFDO FKDUDFWHUV 7KH NH\VWURNHV IRU QRQDOSKDEHWLF FKDUDFWHUV FDQ EH IRXQG LQ WKH &KDUDFWHUV FDWDORJ )RU H[DPSOH WKH NH\VWURNHV IRU Σ...
  • Page 9: System Flags

    Chapter 2 System flags 6\VWHP IODJV SURYLGH \RX ZLWK VRPH FRQWURO RYHU KRZ WKH +3 * EHKDYHV DQG GLVSOD\V LQIRUPDWLRQ )RU H[DPSOH E\ VHWWLQJ IODJ ¥ \RX FDQ ORFN WKH DOSKD NH\ERDUG E\ SUHVVLQJ ` RQFH UDWKHU WKDQ WZLFH &OHDULQJ IODJ ¥ UHWXUQV WKH PRGH WR LWV GHIDXOW VHWWLQJ ZKHUH ` PXVW EH SUHVVHG WZLFH WR ORFN WKH DOSKD NH\ERDUG  Displaying system flags...
  • Page 10 Setting and clearing flags Method 1 8VH WKLV PHWKRG RQO\ LI WKH IODJ \RX ZDQW WR FKDQJH LV OLVWHG LQ WKH 6\VWHP )ODJV OLVW  :LWK WKH 6\VWHP )ODJV OLVW GLVSOD\HG KLJKOLJKW WKH IODJ WKDW \RX ZDQW WR VHW RU FOHDU <RX FDQ GR WKLV E\ HLWKHU ‡...
  • Page 11 Setting or clearing several flags at once ,Q DOJHEUDLF PRGH WKH V\QWD[ LV FRPPDQG ^OLVW` ,Q 531 PRGH HQWHU D OLVW RI WKH IODJV \RX ZDQW WR VHW RU FOHDU RQ WKH ILUVW OHYHO RI WKH VWDFN DQG WKHQ HQWHU WKH DSSURSULDWH FRPPDQG )RU H[DPSOH WR VHW IODJV ¥ DQG¥ LQ DOJHEUDLF PRGH \RX HQWHU 6) ^¥¥` DQG SUHVV \ ,Q 531 PRGH \RX HQWHU ^¥ ¥` RQWR OHYHO  RI WKH VWDFN HQWHU 6) RQWR WKH FRPPDQG OLQH DQG SUHVV \ 1RWH WKDW...
  • Page 12: User Flags

    Flag commands 7KH IODJ FRPPDQGV DUH OLVWHG DQG H[SODLQHG LQ WKH WDEOH EHORZ 7KH IODJ FRPPDQGV HQDEOH \RX WR VHW DQG FOHDU IODJV DV ZHOO DV KDYLQJ D YDOXH UHWXUQHG WKDW LQGLFDWHV WKH VWDWXV RI D VSHFLILHG IODJ  LI WKH IODJ LV VHW  LI WKH IODJ LV FOHDU Command Description...
  • Page 13 Chapter 3 Command line operations 7KH FRPPDQG OLQH LV ZKHUH \RX HQWHU DQG HGLW FRPPDQGV DQG REMHFWV 7KH +3 * SURYLGHV QXPHURXV WRROV WR DVVLVW \RX ZKHQ ZRUNLQJ RQ WKH FRPPDQG OLQH 6RPH RI WKHVH WRROV KDYH WKHLU RZQ NH\ RWKHUV FDQ EH VHOHFWHG IURP WKH FRPPDQG OLQH HGLWRUªV 7RRO PHQX Activating the command line 7KH ZD\ \RX DFWLYDWH WKH FRPPDQG OLQH GHSHQGV RQ ZKHWKHU \RX LQWHQG WR...
  • Page 14 Positioning the cursor :KHQ HGLWLQJ WKH REMHFW RQ WKH FRPPDQG OLQH \RX ZLOO DOPRVW DOZD\V QHHG WR UHSRVLWLRQ WKH FXUVRU Main methods: single-line command line 3UHVV { RU } WR PRYH WKH FXUVRU OHIW RU ULJKW UHVSHFWLYHO\ 7R JR GLUHFWO\ WR WKH ODVW FKDUDFWHU RQ WKH FRPPDQG OLQH SUHVV <” RU > 7R JR GLUHFWO\ WR WKH ILUVW FKDUDFWHU RQ WKH FRPPDQG OLQH SUHVV <–...
  • Page 15 Helpful commands and sub-menus /LNH DOO RWKHU +3 * DSSOLFDWLRQV WKH FRPPDQG OLQH HGLWRU KDV LWV RZQ 7RRO PHQX 7KLV PHQX LV GLVSOD\HG E\ SUHVVLQJ i ZKLOH WKH FRPPDQG OLQH LV DFWLYH WKDW LV ZKLOH WKH FXUVRU LV EOLQNLQJ  <RX WKHQ VHOHFW D FRPPDQG E\ SUHVVLQJ WKH FRUUHVSRQGLQJ IXQFWLRQ NH\ 7KH FRPPDQGV WKDW SURYLGH ZD\V RI SRVLWLRQLQJ WKH FXUVRU DUH ←...
  • Page 16 ),1' 7KH )LQG FRPPDQG LV RQ WKH 6HDUFK VXEPHQX <RX FDQ XVH WKLV FRPPDQG WR VHQG WKH FXUVRU WR WKH FKDUDFWHU RU FKDUDFWHU VWULQJ \RX VSHFLI\ 6HH §)LQG¨ RQ SDJH  IRU PRUH LQIRUPDWLRQ Selecting characters 7KH +3 * SURYLGHV D QXPEHU RI FRPPDQGV WKDW ZRUN RQ VHOHFWHG WH[W VXFK DV FRS\ DQG FXW  7R VHOHFW FKDUDFWHUV \RX PDUN WKH EHJLQQLQJ RI WKH VHOHFWLRQ DQG WKH HQG RI WKH VHOHFWLRQ  3RVLWLRQ WKH FXUVRU DW WKH EHJLQQLQJ RI \RXU VHOHFWLRQ...
  • Page 17: Editing The Command Line

    Editing the command line Deleting characters 7KH VLPSOHVW ZD\ WR GHOHWH D FKDUDFWHU LV WR SRVLWLRQ WKH FXUVRU WR WKH LPPHGLDWH ULJKW RI WKH FKDUDFWHU DQG SUHVV H 2WKHU ZD\V RI GHOHWLQJ FKDUDFWHUV DUH SURYLGHG E\ FRPPDQGV RQ WKH 7RRO PHQX IRU WKH FRPPDQG OLQH HGLWRU 7KH PHQX LV GLVSOD\HG E\ SUHVVLQJ i ZKHQ WKH FRPPDQG OLQH LV DFWLYH 7KHVH FRPPDQGV DUH ←...
  • Page 18 Inserting characters %\ GHIDXOW DQ\ FKDUDFWHU \RX HQWHU RQ WKH FRPPDQG OLQH ZLOO EH LQVHUWHG EHWZHHQ WKH FKDUDFWHUV RQ HLWKHU VLGH RI WKH FXUVRU 7R UHSODFH FKDUDFWHUV UDWKHU WKDQ LQVHUW WKHP \RX GHDFWLYDWH LQVHUW PRGH (DFK FKDUDFWHU \RX HQWHU ZLOO WKHQ UHSODFH¦WKDW LV RYHUZULWH¦WKH FKDUDFWHU GLUHFWO\ EHORZ WKH FXUVRU 7R GHDFWLYDWH RU DFWLYDWH LQVHUW PRGH  :LWK WKH FRPPDQG OLQH DFWLYH SUHVV i...
  • Page 19 Evaluating components of the command line ,I WKHUH LV D FRPSRQHQW RI \RXU REMHFW WKDW FRXOG EH HYDOXDWHG¦VXFK DV D PDWKHPDWLFDO H[SUHVVLRQ¦\RX FDQ VHOHFW WKH FRPSRQHQW DQG HYDOXDWH LW 7KH UHVXOW RI WKH HYDOXDWLRQ UHSODFHV WKH FRPSRQHQW 7R HYDOXDWH D FRPSRQHQW PDNH VXUH WKDW WKH 7RRO PHQX IRU WKH FRPPDQG OLQH HGLWRU LV GLVSOD\HG 3UHVV i LI LW LV QRW  6HOHFW WKH FRPSRQHQW RI WKH REMHFW WKDW \RX ZDQW WR HYDOXDWH 6HH §6HOHFWLQJ FKDUDFWHUV¨...
  • Page 20 Find and replace 7KH +3 * SURYLGHV D QXPEHU RI VHDUFK DQG UHSODFH FRPPDQGV WR KHOS \RX HGLW PXOWLOLQH REMHFWV VXFK DV DUUD\V DQG SURJUDPV  7KHVH DUH DYDLODEOH IURP WKH 6HDUFK PHQX ZKLFK LV D VXEPHQX RI WKH 7RRO PHQX   :LWK DQ REMHFW RQ WKH FRPPDQG OLQH SUHVV i  3UHVV l WR GLVSOD\ WKH VHFRQG SDJH RI WKH 7RRO PHQX 6($5&+...
  • Page 21 &+.  ,I \RX GR QRW ZDQW D FDVH VHQVLWLYH VHDUFK SUHVV 7KH WLFN LQ WKH &DVH 6HQVLWLYH ILHOG LV GHOHWHG <RXU VHDUFK ZLOO QRZ ORRN IRU ERWK WKH XSSHUFDVH DQG ORZHUFDVH YHUVLRQV RI WKH FKDUDFWHUV \RX HQWHUHG LQWR WKH 6HDUFK )RU ILHOG  3UHVV RU \ WR EHJLQ WKH VHDUFK ,I \RXU VHDUFK VWULQJ LV IRXQG LW ZLOO EH KLJKOLJKWHG RQ WKH FRPPDQG...
  • Page 22 Replace 7KH 5HSODFH FRPPDQG VHDUFKHV WKURXJK WKH REMHFW RQ WKH FRPPDQG OLQH DQG KLJKOLJKWV WKH ILUVW LQVWDQFH RI D FKDUDFWHU RU FKDUDFWHU VWULQJ WKDW PDWFKHV \RXU VHDUFK VWULQJ WKDW LV WKH FKDUDFWHU RU FKDUDFWHU VWULQJ \RX VSHFLI\  <RX FDQ WKHQ UHSODFH WKDW VWULQJ ZLWK DQRWKHU VWULQJ 7KH 5HSODFH FRPPDQG EHJLQV VHDUFKLQJ IURP WKH SRVLWLRQ RI WKH FXUVRU 7KHUHIRUH LI \RXU FXUVRU LV QRW DW WKH VWDUW RI WKH REMHFW WKHUH LV D ULVN WKDW WKH 5HSODFH FRPPDQG ZLOO QRW ILQG \RXU VHDUFK VWULQJ HYHQ WKRXJK WKDW...
  • Page 23  3UHVV RU \ WR EHJLQ WKH VHDUFK ,I \RXU VHDUFK VWULQJ LV IRXQG LW ZLOO EH KLJKOLJKWHG RQ WKH FRPPDQG OLQH RWKHUZLVH D PHVVDJH LV GLVSOD\HG LQIRUPLQJ \RX WKDW \RXU VHDUFK VWULQJ FDQQRW EH IRXQG  ,I \RX GRQªW ZDQW WR UHSODFH WKH FXUUHQW VHOHFWLRQ EXW ZDQW WR FRQWLQXH ),1' 1(;7 ORRNLQJ IRU \RXU VHDUFK VWULQJ VHOHFW IURP WKH 6HDUFK PHQX...
  • Page 24 Command line information 7KH FRPPDQG OLQH HGLWRU 7RRO PHQX DOVR SURYLGHV JHQHUDO LQIRUPDWLRQ DERXW WKH REMHFW RQ WKH FRPPDQG OLQH DQG WKH SRVLWLRQ RI WKH FXUVRU 7R VHH WKLV LQIRUPDWLRQ SUHVV ,1)2  $ VFUHHQ HQWLWOHG §&RPPDQG /LQH¨ DSSHDUV 7KH ILHOGV RQ WKLV VFUHHQ DUH /LQHV 7KH QXPEHU RI OLQHV RYHU ZKLFK WKH REMHFW H[WHQGV ;...
  • Page 25 Styles <RX FDQ VHW WKH VW\OH RI D FRPPDQG OLQH HQWU\ WR EROG LWDOLF XQGHUOLQHG RU LQYHUWHG RU WR DQ\ FRPELQDWLRQ RI WKHVH FKDUDFWHULVWLFV <RX FDQ DOVR FKRRVH D GLIIHUHQW IRQW IRU WKH HQWU\ 7R GR WKLV PDNH VXUH WKDW WKH FRPPDQG OLQH LV DFWLYH DQG WKH 7RRO PHQX IRU WKH FRPPDQG OLQH HGLWRU LV GLVSOD\HG 3UHVV i LI LW LV QRW 67</(6...
  • Page 27: The Stack

    Chapter 4 The Stack 7KH +3 * NHHSV D UHFRUG RI WKH REMHFWV \RX HQWHU DQG WKH UHVXOWV RI \RXU RSHUDWLRQV ,Q DOJHEUDLF PRGH WKLV UHFRUG LV FDOOHG KLVWRU\ LQ 531 PRGH LW LV FDOOHG WKH VWDFN Using the stack (QWULHV RQ WKH VWDFN DUH QXPEHUHG DV LQ WKH H[DPSOH DW WKH ULJKW  $Q HQWU\ RQ WKH VWDFN LV UHIHUUHG WR DV EHLQJ RQ D SDUWLFXODU OHYHO 7KH...
  • Page 28: Example Stack Calculations

    ,Q 531 PRGH \RX HQWHU \\q ,Q RWKHU ZRUGV LQ 531 PRGH  DQG  DUH HQWHUHG RQWR WKH VWDFN EHIRUH WKH FRPPDQG LV HQWHUHG  PXVW EH RQ OHYHO  DQG  RQ OHYHO  EHIRUH WKH FRPPDQG LV H[HFXWHG 6WULFWO\ VSHDNLQJ WKH ODVW RU RQO\ DUJXPHQW GRHV QRW QHHG WR EH RQ WKH VWDFN EHIRUH \RX H[HFXWH D FRPPDQG LQ 531 PRGH <RX FDQ H[HFXWH D FRPPDQG ZLWK WKH ODVW RU RQO\ DUJXPHQW VWLOO RQ WKH FRPPDQG OLQH...
  • Page 29 Using a multi-argument command Method 1  (QWHU WKH DUJXPHQWV SUHVVLQJ \ DIWHU HDFK RQH  ([HFXWH WKH FRPPDQG ([DPSOH 7R FDOFXODWH  á   (QWHU  DQG SUHVV \  (QWHU  DQG SUHVV \  LV QRZ RQ OHYHO  RI WKH VWDFN DQG  LV RQ OHYHO   3UHVV Œ ,Q WKLV H[DPSOH WKH RUGHU LQ ZKLFK \RX HQWHU WKH DUJXPHQWV GRHV QRW...
  • Page 30 Multi-command calculations %HFDXVH WKH UHVXOW RI D FDOFXODWLRQ LV UHWDLQHG RQ WKH VWDFN \RX FDQ HDVLO\ SHUIRUP FRPSOH[ FDOFXODWLRQV E\ DFFXPXODWLQJ WKH UHVXOWV RI VXE FDOFXODWLRQV RQ WKH VWDFN DQG WKHQ WUHDWLQJ WKHVH UHVXOWV DV WKH DUJXPHQWV LQ D IXUWKHU FDOFXODWLRQ ([DPSOH 7R FDOFXODWH ×...
  • Page 31 Chapter 5 Matrices and linear algebra 7KH +3 * KDV H[WHQVLYH FDSDELOLWLHV IRU HQWHULQJ DQG PDQLSXODWLQJ DUUD\V $Q DUUD\ REMHFW FDQ EH D YHFWRU RU PDWUL[ 0DQ\ RI WKH PDWUL[ RSHUDWLRQV GHVFULEHG LQ WKLV FKDSWHU DOVR DSSO\ WR YHFWRUV :KHUHYHU WKLV LV WKH FDVH WKH PRUH JHQHUDO WHUP DUUD\ LV XVHG LQVWHDG RI PDWUL[ %\ GHIDXOW 0DWUL[ :ULWHU ZLOO LQWHUSUHW D RQHURZ DUUD\ DV D YHFWRU UDWKHU WKDQ DV D PDWUL[ ,I \RX ZDQW D RQHURZ DUUD\ LQWHUSUHWHG DV DQ DUUD\ SUHVV...
  • Page 32 0HWKRG  WKH *272 FRPPDQG *272  3UHVV 7KH 0DWUL[ :ULWHU LQSXW IRUP LV GLVSOD\HG *272 1RWH WKDW WKH FRPPDQG LV RQ WKH VHFRQG SDJH RI WKH 0DWUL[ :ULWHU PHQX VR \RX PD\ QHHG WR SUHVV l WR GLVSOD\ LW  (QWHU WKH URZ QXPEHU RI WKH FHOO \RX ZDQW WR JR WR  3UHVV \  (QWHU WKH FROXPQ QXPEHU RI WKH FHOO \RX ZDQW WR JR WR...
  • Page 33 To make the cells narrower or wider ‡ 3UHVV ← WR PDNH WKH FHOOV QDUURZHU 0RUH FROXPQV DUH GLVSOD\HG → WR PDNH WKH FHOOV ZLGHU ‡ 3UHVV )HZHU FROXPQV DUH GLVSOD\HG 1RWH WKDW WKHVH FRPPDQGV PRGLI\ WKH ZLGWK RI DOO FROXPQV QRW MXVW WKH FROXPQ ZLWK WKH KLJKOLJKWHG FHOO To control how the cursor moves after an entry %\ GHIDXOW WKH FXUVRU PRYHV WR WKH DGMDFHQW FHOO LQ WKH QH[W FROXPQ DIWHU...
  • Page 34 Manipulating columns and rows To insert a column  0RYH WKH FXUVRU WR WKH FROXPQ ZKHUH \RX ZDQW WKH QHZ FROXPQ WR DSSHDU &2/  3UHVV   $ FROXPQ RI ]HURV LV LQVHUWHG &2/ 1RWH WKDW WKH  FRPPDQG LV RQ WKH VHFRQG SDJH RI WKH PHQX VR \RX PD\ QHHG WR SUHVV l WR GLVSOD\ LW <RX FDQ DOVR DGG D FROXPQ WR DQ DUUD\ ZLWKRXW XVLQJ 0DWUL[ :ULWHU 6HH §7R LQVHUW RQH RU PRUH QHZ FROXPQV LQWR DQ DUUD\¨...
  • Page 35 To add a row below the bottom row of data  0RYH WKH FXUVRU WR WKH URZ EHORZ WKH ODVW URZ RI GDWD 3UHVVLQJ > ‘ ZLOO PRYH WKH FXUVRU GLUHFWO\ WR WKH ODVW URZ RI GDWD <RX WKHQ SUHVV ] WR PRYH WR WKH QH[W URZ  (QWHU DQ REMHFW  3UHVV \ WR PRYH \RXU REMHFW WR WKH KLJKOLJKWHG FHOO 7KH UHVW RI WKH URZ ILOOV ZLWK ]HURV DQG \RXU DUUD\ QRZ LQFOXGHV WKLV...
  • Page 36 Summary of Matrix Writer operations Description (',7 3ODFHV WKH FRQWHQWV RI WKH FXUUHQW FHOO RQ WKH FRPPDQG OLQH IRU HGLWLQJ 9(& )RU RQHURZ DUUD\V WRJJOHV EHWZHHQ YHFWRU HQWU\ DQG PDWUL[ HQWU\ ,I WKLV FRPPDQG LV VHOHFWHG RQHURZ DUUD\V DUH HQWHUHG RQWR WKH FRPPDQG OLQH DV YHFWRUV H[DPSOH >...
  • Page 37 Advanced matrix operations Creating special matrices To create an array filled with a given constant  6HOHFW WKH &RQVWDQW $UUD\ FRPPDQG &5($7( &21 < %  )RU WKH ILUVW DUJXPHQW RI WKH FRPPDQG HQWHU HLWKHU ‡ D OLVW FRQWDLQLQJ WKH GLPHQVLRQV RI WKH GHVLUHG FRQVWDQW DUUD\ { URZV FROXPQV } RU ‡...
  • Page 38 To create an array filled with random integers  6HOHFW WKH 5DQGRP 0DWUL[ FRPPDQG &5($7( 5$10 < %  (QWHU HLWKHU ‡ D OLVW FRQWDLQLQJ WKH GLPHQVLRQV RI WKH GHVLUHG UDQGRP PDWUL[ { URZV FROXPQV } RU ‡ DQ H[LVWLQJ DUUD\  3UHVV \ 7KH UHVXOW LV D UDQGRP DUUD\ RI WKH VSHFLILHG GLPHQVLRQV RU RI WKH GLPHQVLRQV RI WKH VSHFLILHG DUUD\  7KH HOHPHQWV DUH LQWHJHUV ZLWKLQ...
  • Page 39 To assemble a matrix with a particular diagonal from a vector  6HOHFW WKH 9HFWRUWR0DWUL[ 'LDJRQDO FRPPDQG &5($7( ',$* → < %  (QWHU WKH YHFWRU FRQWDLQLQJ WKH GLDJRQDO HOHPHQWV  (QWHU HLWKHU ‡ D OLVW FRQWDLQLQJ WKH GLPHQVLRQV RI WKH GHVLUHG PDWUL[ {URZV FROXPQV} RU ‡...
  • Page 40 Disassembling matrices To disassemble a matrix into its elements  6HOHFW WKH 2EMHFWWR6WDFN FRPPDQG 7<3( 2%- → < N  (QWHU RU VHOHFW WKH PDWUL[ \RX ZDQW WR GLVDVVHPEOH  3UHVV \ 7KH PDWUL[ LV GLVDVVHPEOHG LQ URZPDMRU RUGHU $ OLVW LQGLFDWLQJ WKH GLPHQVLRQV RI WKH PDWUL[ LV DOVR UHWXUQHG To disassemble a matrix into row vectors  6HOHFW WKH 0DWUL[WR5RZV FRPPDQG...
  • Page 41 Inserting rows and columns To insert one or more new rows into a matrix  6HOHFW WKH ,QVHUW 5RZ FRPPDQG &5($7( 52: 52: < %  (QWHU RU VHOHFW WKH DUUD\ \RX ZDQW WR PRGLI\  (QWHU WKH YHFWRU RU PDWUL[ WKDW \RX ZDQW WR LQVHUW $Q LQVHUWHG DUUD\ PXVW KDYH WKH VDPH QXPEHU RI FROXPQV DV WKH DUUD\ LQWR ZKLFK LW LV EHLQJ LQVHUWHG  (QWHU WKH URZ QXPEHU \RX ZDQW WKH ILUVW RU RQO\ LQVHUWHG URZ WR EH...
  • Page 42 Extracting rows and columns To extract a particular row from an array  6HOHFW WKH 'HOHWH 5RZ FRPPDQG &5($7( 52: 52: < % ¥  (QWHU RU VHOHFW WKH DUUD\ ZLWK WKH URZ \RX ZDQW WR H[WUDFW  (QWHU WKH QXPEHU RI WKH URZ \RX ZDQW WR H[WUDFW  3UHVV \ 7KH UHVXOW LV WKH DUUD\ ZLWKRXW WKH H[WUDFWHG URZ DQG WKH H[WUDFWHG URZ DV D YHFWRU...
  • Page 43 To swap two columns in an array  6HOHFW WKH &ROXPQ 6ZDS FRPPDQG &5($7( &2/801 &6:3 < %  (QWHU RU VHOHFW WKH PDWUL[ ZLWK WKH FROXPQV \RX ZDQW WR VZDS  (QWHU WKH QXPEHU RI WKH RQH RI WKH FROXPQV \RX ZDQW WR VZDS  (QWHU WKH QXPEHU RI WKH RWKHU FROXPQ \RX ZDQW WR VZDS  3UHVV \ 7KH UHVXOW LV WKH DUUD\ ZLWK WKH WZR VSHFLILHG FROXPQV VZDSSHG...
  • Page 44 Characterizing matrices 0DWUL[ FDOFXODWLRQV DUH RIWHQ VHQVLWLYH WR VSHFLDO FKDUDFWHULVWLFV RI WKH PDWULFHV XVHG 7KH +3 * KDV D QXPEHU RI FRPPDQGV WKDW UHWXUQ FKDUDFWHULVWLFV RI PDWULFHV 1RWH WKDW VRPH FRPPDQGV DUH RQO\ GHILQHG IRU VTXDUH PDWULFHV VRPH IRU DQ\ UHFWDQJXODU PDWUL[ Commands for characterizing matrices Keys Description...
  • Page 45 Keys (Continued) Description 23(5$7,216 65$' < % 5HWXUQV WKH VSHFWUDO UDGLXV RI D VTXDUH PDWUL[ 7KH VSHFWUDO UDGLXV LV WKH DEVROXWH YDOXH RI WKH ODUJHVW HLJHQYDOXH RI WKH PDWUL[ 23(5$7,216 &21' < % 5HWXUQV WKH FROXPQQRUP FRQGLWLRQ QXPEHU RI D VTXDUH PDWUL[ 7KH FRQGLWLRQ QXPEHU LV GHILQHG WR EH WKH SURGXFW RI WKH FROXPQ QRUP RI D VTXDUH PDWUL[ DQG WKH FROXPQ QRUP RI LWV...
  • Page 46 Transforming matrices To transpose a matrix  6HOHFW WKH DSSURSULDWH 7UDQVSRVH 0DWUL[ FRPPDQG 0$75,; 0$.( 751 ‡ < P LI \RX ZDQW WKH FRQMXJDWH WUDQVSRVH RI D FRPSOH[ PDWUL[  RU 23(5$7,216 75$1 ‡ < % LI \RX ZDQW WUDQVSRVLWLRQ ZLWKRXW FRQMXJDWLRQ   (QWHU RU VHOHFW WKH DUUD\ \RX ZDQW WR WUDQVSRVH  3UHVV \ WR WUDQVSRVH WKH PDWUL[...
  • Page 47 More matrix arithmetic 6LPSOH PDWUL[ DULWKPHWLF LV FRYHUHG LQ FKDSWHU  RI WKH +3 * 8VHUªV *XLGH 7KLV VHFWLRQ FRYHUV VRPH RI WKH RWKHU DULWKPHWLF RSWLRQV To change the sign of each element in a matrix  3UHVV w_  :LWK WKH FXUVRU EHWZHHQ WKH SDUHQWKHVHV HQWHU RU VHOHFW WKH PDWUL[  3UHVV \ To multiply a matrix and vector  (QWHU RU VHOHFW WKH PDWUL[...
  • Page 48 Transforming complex matrices To combine two real matrices into a complex matrix  6HOHFW WKH 5HDOWR&RPSOH[ FRPPDQG &203/(; 5 → & < P  (QWHU RU VHOHFW WKH UHDO PDWUL[ WKDW ZLOO EHFRPH WKH UHDO SDUW RI WKH FRPSOH[ PDWUL[  (QWHU RU VHOHFW WKH UHDO PDWUL[ WKDW ZLOO EHFRPH WKH LPDJLQDU\ SDUW RI WKH FRPSOH[ PDWUL[ 7KLV PDWUL[ PXVW KDYH WKH VDPH GLPHQVLRQV DV WKH PDWUL[ HQWHUHG DW...
  • Page 49: Eigenvalues And Eigenvectors

    To extract the matrix of imaginary parts from a complex matrix  6HOHFW WKH ,PDJLQDU\ 3DUW IXQFWLRQ &203/(; ,0 >  (QWHU RU VHOHFW WKH FRPSOH[ PDWUL[ ZKRVH LPDJLQDU\ FRPSRQHQWV \RX ZDQW WR H[WUDFW  3UHVV \ 7KH UHVXOW LV D PDWUL[ FRPSULVLQJ MXVW WKH LPDJLQDU\ FRPSRQHQWV RI WKH FRPSOH[ PDWUL[ Linear algebra topics 7KH XVH RI PDWUL[ IXQFWLRQV WR VROYH V\VWHPV RI OLQHDU HTXDWLRQV LV...
  • Page 50 To compute the eigenvalues and eigenvectors for a square matrix  6HOHFW WKH (LJHQYDOXHV DQG (LJHQYHFWRUV FRPPDQG (,*(19(&725 (*9 < %  (QWHU RU VHOHFW WKH VTXDUH Q á Q PDWUL[ ZKRVH HLJHQYDOXHV DQG HLJHQYHFWRUV \RX ZDQW WR FDOFXODWH  3UHVV \ 7KH UHVXOW LV DQ Q á...
  • Page 51 To decompose or factor a matrix 7KH +3 * RIIHUV D VHW RI PDWUL[ GHFRPSRVLWLRQ DQG IDFWRUL]DWLRQ WRROV WKDW \RX FDQ XVH HLWKHU DORQH RU LQ SURJUDP URXWLQHV WR VROYH VSHFLDOL]HG SUREOHPV 7KHVH WRROV DUH H[SODLQHG LQ WKH IROORZLQJ WDEOH Keys Description )$&725,=$7,21 /8...
  • Page 52 Keys (Continued) Description )$&725,=$7,21 69' < % 6LQJXODU 9DOXH 'HFRPSRVLWLRQ 7KLV FRPPDQG IDFWRUV DQ P Q PDWUL[ $ á LQWR DQ P P RUWKRJRQDO PDWUL[ 8 DQ á Q RUWKRJRQDO PDWUL[ 9 DQG D YHFWRU á 6 RI WKH VLQJXODU YDOXHV RI $ VXFK WKDW 86©9 ZKHUH 6©...
  • Page 53 Chapter 6 Unit objects 7KH 8QLWV DSSOLFDWLRQ FRQWDLQV D FDWDORJ RI  XQLWV WKDW \RX FDQ FRPELQH ZLWK UHDO QXPEHUV WR FUHDWH XQLW REMHFWV ,W DOVR SURYLGHV \RX ZLWK WRROV WR PDQLSXODWH XQLW REMHFWV 7KH 8QLWV DSSOLFDWLRQ HQDEOHV \RX WR ‡...
  • Page 54 Unit objects $ XQLW REMHFW KDV WZR SDUWV D UHDO QXPEHU DQG D XQLW H[SUHVVLRQ D VLQJOH XQLW RU PXOWLSOLFDWLYH FRPELQDWLRQ RI XQLWV  7KH WZR SDUWV DUH OLQNHG E\ WKH XQGHUVFRUH FKDUDFWHU B )RU H[DPSOH BLQ  LQFKHV DQG BJDOK  86 JDOORQV SHU KRXU DUH XQLW REMHFWV /LNH RWKHU REMHFW W\SHV D XQLW REMHFW FDQ EH SODFHG RQ WKH VWDFN VWRUHG LQ D YDULDEOH DQG XVHG LQ DOJHEUDLF H[SUHVVLRQV DQG SURJUDPV...
  • Page 55 To assemble a unit object from the stack  3ODFH WKH QXPEHU SDUW RI WKH XQLW REMHFW RQ OHYHO  RI WKH VWDFN DQG WKH XQLW H[SUHVVLRQ RQ OHYHO  7KH XQLW H[SUHVVLRQ PXVW EH LQ WKH IRUPDW QBXQLW ZKHUH Q LV DQ\ UHDO QXPEHU DQG XQLW LV WKH XQLW DEEUHYLDWLRQ OE LQ P HWF   ([HFXWH WKH →...
  • Page 56 Converting units 7KH +3 * SURYLGHV WZR FRPPDQGV IRU FRQYHUWLQJ XQLW REMHFWV IURP RQH XQLW RI PHDVXUHPHQW WR DQRWKHU &219(57 ‡ 8%$6( ‡ &219(57 FRPPDQG¦ZKLFK UHTXLUHV WZR DUJXPHQWV¦FDQ EH XVHG WR 8%$6( FRQYHUW RQH W\SH RI XQLW WR DQ\ RWKHU VLPLODU XQLW 7KH FRPPDQG¦...
  • Page 57 To convert units to SI base units &219(57 FRPPDQG GLVFXVVHG LQ WKH SUHYLRXV VHFWLRQ FDQ EH XVHG WR FRQYHUW WR DQ\ VSHFLILHG XQLWV 6, XQLWV RU RWKHUZLVH ,I \RX ZDQW WR 8%$6( FRQYHUW D XQLW REMHFW WR LWV HTXLYDOHQW 6, EDVH XQLWV WKH FRPPDQG LV TXLFNHU DV LW UHTXLUHV MXVW RQH DUJXPHQW 722/6 8%$6(...
  • Page 58 7KH WULJRQRPHWULF RSHUDWLRQV 6,1 &26 DQG 7$1 RSHUDWH RQO\ RQ XQLW REMHFWV ZLWK SODQDU DQJXODU XQLWV UDGLDQV U  GHJUHHV ƒ  JUDGV JUDG  DUFPLQXWHV DUFPLQ  RU DUFVHFRQGV DUFV  7HPSHUDWXUH XQLWV UHTXLUH VSHFLDO DWWHQWLRQ VHH §:RUNLQJ ZLWK WHPSHUDWXUH XQLWV¨ RQ SDJH  Sample unit calculations 7KH IROORZLQJ H[DPSOHV DVVXPH WKDW \RX DUH ZRUNLQJ LQ DOJHEUDLF PRGH 6XEWUDFWLRQ 7R VXEWUDFW LQ IURP IW...
  • Page 59 3RZHUV 7R FXEH IWV  (QWHU BIWV  1RWH WKDW ZKHQ \RX DUH LQ DOJHEUDLF PRGH DQG UDLVLQJ D XQLW REMHFW WR D SRZHU WKH XQLW REMHFW PXVW EH HQWHUHG LQ SDUHQWKHVHV  3UHVV q  (QWHU   3UHVV \ 7KH DQVZHU LV BIW ,Q 531 PRGH IROORZ VWHSV   DQG  3DUHQWKHVHV DUH QRW UHTXLUHG DURXQG XQLW REMHFWV LQ 531 PRGH...
  • Page 60 Factoring unit expressions 7KH 8)$&7 FRPPDQG IDFWRUV RQH XQLW ZLWKLQ D XQLW REMHFW UHWXUQLQJ D XQLW REMHFW ZKRVH XQLW H[SUHVVLRQ FRQVLVWV RI WKH IDFWRUHG XQLW DQG WKH UHPDLQLQJ 6, EDVH XQLWV To factor units within a unit expression 722/6 8)$&7  3UHVV >...
  • Page 61 Converting temperature units &RQYHUVLRQV EHWZHHQ WKH IRXU WHPSHUDWXUH VFDOHV . ƒ& ƒ) DQG ƒ5 LQYROYH DGGLWLYH FRQVWDQWV DV ZHOO DV PXOWLSOLFDWLYH IDFWRUV 7KH DGGLWLYH FRQVWDQWV DUH LQFOXGHG LQ D FRQYHUVLRQ ZKHQ WKH WHPSHUDWXUH XQLWV UHIOHFW DFWXDO WHPSHUDWXUH OHYHOV DQG DUH LJQRUHG ZKHQ WKH WHPSHUDWXUH XQLWV UHIOHFW WHPSHUDWXUH GLIIHUHQFHV ‡...
  • Page 62 ([DPSOH  &RQYHUW ƒ&PLQ WR ƒ)PLQ 1RWH WKDW XQOLNH LQ WKH ILUVW H[DPSOH LQ WKLV H[DPSOH D UHODWLYH WHPSHUDWXUH FRQYHUVLRQ ZLOO EH SHUIRUPHG 722/6 &219(57  3UHVV > ø  (QWHU Bƒ&PLQ 1RWH WKDW ƒ&PLQ LV QRW DYDLODEOH LQ WKH XQLWV FDWDORJ DQG VR PXVW EH FUHDWHG <RX FDQ VHOHFW ƒ&...
  • Page 63 Chapter 7 Constants library 7KH FRQVWDQWV OLEUDU\ FRQWDLQV D FROOHFWLRQ RI FRPPRQO\ XVHG SK\VLFDO FRQVWDQWV DQG TXDQWLWLHV <RX FDQ XVH WKHP LQ HTXDWLRQV DQG SURJUDPV 7KH IROORZLQJ WDEOH OLVWV WKH FRQVWDQWV LQ WKH RUGHU WKH\ DSSHDU LQ WKH OLEUDU\ Abbrev- Description Value (SI) iation...
  • Page 64 Abbrev- Description Value (SI) iation 3URWRQ UHVW PDVV (¥ NJ PSPH PSPH  α )LQH VWUXFWXUH FRQVWDQW  φ 0DJQHWLF IOX[ TXDQWXP (¥ :E )DUDGD\ FRQVWDQW  &JPRO 5∞ 5\GEHUJ FRQVWDQW ¥  P %RKU UDGLXV  QP µ% %RKU PDJQHWRQ (¥ -7 µ1 1XFOHDU PDJQHWRQ...
  • Page 65 To view the constants library &2167$176 /,%  3UHVV g  3UHVV \ ,Q 531 PRGH IROORZ VWHS  RQO\ To view the value and units of a particular constant  +LJKOLJKW WKH FRQVWDQW ZKRVH YDOXH \RX ZDQW WR VHH <RX FDQ HLWKHU SUHVV ] RU [ XQWLO WKH FRQVWDQW LV KLJKOLJKWHG RU SUHVV ` IROORZHG E\ WKH ILUVW FKDUDFWHU RI WKH FRQVWDQWªV DEEUHYLDWLRQ )RU H[DPSOH WR TXLFNO\ ILQG WKH DFFHOHUDWLRQ RI JUDYLW\ HQWHU ` <...
  • Page 66 To include a constant in an algebraic expression <RX FDQ LQFOXGH D FRQVWDQW LQ DQ H[SUHVVLRQ \RX DUH FUHDWLQJ RQ WKH FRPPDQG OLQH RU LQ (TXDWLRQ :ULWHU  $W WKH SRVLWLRQ LQ WKH H[SUHVVLRQ ZKHUH \RX ZDQW WR LQFOXGH D FRQVWDQW W\SH &2167  3UHVV <_  :LWK WKH FXUVRU EHWZHHQ WKH SDUHQWKHVHV W\SH WKH DEEUHYLDWLRQ IRU WKH...
  • Page 67: Number Bases

    Chapter 8 Number bases Entering and displaying binary integers <RX FDQ HQWHU DQG GLVSOD\ LQWHJHUV LQ RQH RI IRXU IRUPV ‡ GHFLPDO EDVH  ‡ KH[DGHFLPDO EDVH  ‡ RFWDO EDVH  RU ‡ ELQDU\ EDVH   <RX XVH WKH SRXQG V\PERO WRJHWKHU ZLWK D VXIIL[ WR LQGLFDWH WKH EDVH RI D QXPEHU 7KH VXIIL[HV DUH G GHFLPDO K KH[DGHFLPDO ...
  • Page 68 7KH VHWWLQJV IRU IODJV ¥ DQG ¥ GHWHUPLQH WKH FXUUHQW EDVH 7KH '(& +(; 2&7 DQG %,1 FRPPDQGV FRQWURO WKH VHWWLQJV RI WKHVH IODJV –11 Flag settings for number bases Clear –12 Clear $Q DQQXQFLDWRU RQ \RXU GHIDXOW VFUHHQ LQGLFDWHV WKH FXUUHQW EDVH VHWWLQJ To set the wordsize  3UHVV >ì...
  • Page 69 %LQDU\ LQWHJHUV DUH GLVSOD\HG RQ WKH +3 * ZLWK D VSDFH DIWHU WKH VLJQ <RX GR QRW QHHG WR HQWHU D VSDFH ZKHQ FUHDWLQJ D ELQDU\ LQWHJHU ,I \RX VSHFLI\ D EDVH RWKHU WKDQ WKH FXUUHQW EDVH VHWWLQJ WKH +3 * FRQYHUWV WKH ELQDU\ LQWHJHU \RX HQWHUHG WR DQ LQWHJHU WR WKH EDVH RI WKH FXUUHQW VHWWLQJ ,I \RX ZDQW WR VHH WKH ELQDU\ LQWHJHU \RX HQWHUHG SUHVV <...
  • Page 70 To convert a binary integer to a different number base  3UHVV N Q ZKHUH Q LV WKH FRPPDQG WKDW UHSUHVHQWV WKH EDVH \RX ZDQW WR FRQYHUW WR '(& %,1 +(; RU 2&7  (QWHU WKH ELQDU\ LQWHJHU  3UHVV \ )RU H[DPSOH WR FRQYHUW E WR KH[DGHFLPDO HQWHU +(; E DQG SUHVV \ ,Q 531 PRGH IROORZ VWHSV  DQG ...
  • Page 71 Using Boolean operators 7KH +3 * SURYLGHV D QXPEHU RI FRPPDQGV WKDW HQDEOH \RX WR SHUIRUP %RROHDQ RSHUDWLRQV DQG FRPSDULVRQV RQ ELQDU\ LQWHJHUV 7KHVH FRPPDQGV¦DYDLODEOH E\ SUHVVLQJ >ì ¦DUH LOOXVWUDWHG LQ WKH /2*,& IROORZLQJ WDEOH 7KH LQSXW V\QWD[ VKRZQ DVVXPHV WKDW \RX DUH LQ DOJHEUDLF PRGH Examples Commands...
  • Page 72 Manipulating bits and bytes 7KH IROORZLQJ FRPPDQGV HQDEOH \RX WR PDQLSXODWH ELQDU\ LQWHJHUV RQH ELW RU RQH E\WH DW D WLPH 7KH FRPPDQGV DUH DYDLODEOH E\ SUHVVLQJ >ì >ì  8QOHVV RWKHUZLVH VWDWHG HDFK H[DPSOH DVVXPHV WKH %<7( ZRUGVL]H LV VHW WR  Example Commands Input...
  • Page 73: Creating Lists

    Chapter 9 Lists and Sequences Creating Lists To enter a list from the keyboard  3UHVV  7KH EUDFHV LQGLFDWH WKH EHJLQQLQJ DQG HQG RI D OLVW  (QWHU WKH HOHPHQWV RI WKH OLVW VHSDUDWLQJ HDFK ZLWK D FRPPD >I   3UHVV \ 1RWH WKDW WKH OLVW LV GLVSOD\HG ZLWKRXW FRPPDV To assemble a list from a set of stack objects...
  • Page 74 To append a new object to the end of a list  (QWHU RU VHOHFW WKH OLVW  3UHVV =  (QWHU RU VHOHFW WKH QHZ REMHFW  3UHVV \ ,Q 531 PRGH IROORZ VWHSV   DQG  List Processing To apply a one-argument command to each element in a list 7KH RUGHU LQ ZKLFK \RX HQWHU WKH FRPPDQG DQG WKH OLVW GHSHQGV RQ WKH...
  • Page 75 ,I \RX DUH H[HFXWLQJ D SRVWIL[ IXQFWLRQ RU ZRUNLQJ LQ 531 PRGH WKH VWHSV \RX VKRXOG WDNH DUH JLYHQ LQ WKH IROORZLQJ WDEOH Prefix Postfix Algebraic 1, 2, 3 2, 1, 3 2, 3, 1 2, 1 $QRWKHU H[DPSOH 7R ILQG WKH IDFWRULDO RI   DQG  ZKLOH ZRUNLQJ LQ DOJHEUDLF PRGH  (QWHU RU VHOHFW WKH OLVW ^  `  6HOHFW WKH IDFWRULDO FRPPDQG <P...
  • Page 76 To concatenate two lists 7R FRQFDWHQDWH WZR OLVWV LV WR IRUP D OLVW PDGH XS RI WKH HOHPHQWV RI ERWK OLVWV 7KH RUGHU RI WKH HOHPHQWV LQ HDFK VXEOLVW LV SUHVHUYHG  (QWHU WKH OLVW ZKRVH HOHPHQWV ZLOO IRUP WKH ILUVW SDUW RI WKH FRQFDWHQDWHG OLVW )RU H[DPSOH ^  `  3UHVV =...
  • Page 77 Applying a function or program to a list FRPPDQG HQDEOHV \RX WR UXQ SURJUDPV RU H[HFXWH IXQFWLRQV 9PGDTU RQ JURXSV RI OLVWV To run a program or execute a function on lists :KHQ \RX DUH RSHUDWLQJ RQ D QXPEHU RI OLVWV¦HVSHFLDOO\ ORQJ OLVWV¦LW PD\ EH HDVLHU DQG FOHDUHU LI \RX DUH LQ 531 PRGH DV LQ WKH FDVH RI WKH IROORZLQJ H[DPSOH   (QWHU WKH OLVWV...
  • Page 78 ([DPSOH )LQG WKH HOHPHQW PRYLQJ DYHUDJH RI ^    `  (QWHU WKH OLVW  (QWHU WKH IUDPH LQGH[ ,Q WKLV H[DPSOH WKH QXPEHU LV  DV \RX ZDQW WR ILQG WKH DYHUDJH RI WZR QXPEHUV HDFK WLPH  (QWHU WKH SURJUDP œ...
  • Page 79 List Manipulations 7KH IROORZLQJ IXQFWLRQV SURYLGH ZD\V WR PDQLSXODWH WKH HOHPHQWV RI D OLVW Function Description /,67 6257 <P Sorts the elements in a list in ascending order. In RPN mode, the list must be on level 1. /,67 5(9/,67 <P Reverses the order of the elements in a list.
  • Page 80 Function (Continued) Description /,67 (/(0(176 326 <N Returns the position of the first occurrence of an ele- ment (argument 2/level 1) in a specified list (argument 1/level 2). For example: ({2, 4, 6, 1, 2, 3, 4}, 4) returns 2 (since the first occurrence of 4 is at position 2 in the list.
  • Page 81 Sequences 6HTXHQFH FRPPDQGV DXWRPDWH WKH JHQHUDWLRQ RI D OLVW IURP WKH UHSHDWHG H[HFXWLRQ RI D IXQFWLRQ RU SURJUDP To generate a sequence ,Q DOJHEUDLF PRGH  6SHFLI\ WKH VHTXHQWLDO FDOFXODWLRQ FRPPDQG <N GDTU QSP8@9VS@T T@R  (QWHU WKH IXQFWLRQ RU SURJUDP RU LWV QDPH   (QWHU WKH LQGH[ YDULDEOH QDPH  (QWHU WKH LQLWLDO YDOXH IRU WKH YDULDEOH  (QWHU WKH ILQDO YDOXH IRU WKH YDULDEOH...
  • Page 82 ,I \RX KDG HQWHUHG  IRU WKH VWHS YDOXH DW VWHS  WKHQ HYHU\ VHFRQG LQWHJHU LQ WKH VSHFLILHG UDQJH ZRXOG KDYH EHHQ LQFOXGHG LQ WKH LWHUDWLRQV DQG WKH UHVXOW ZRXOG KDYH EHHQ ^  ` To find the sum of the elements in a finite list  6HOHFW WKH OLVW VXP FRPPDQG <P GDTU...
  • Page 83 Chapter 10 Advanced plotting options Labelling and relocating the axes To label the coordinate axes with the variable names 7KH QDPHV RI WKH LQGHSHQGHQW DQG GHSHQGHQW YDULDEOHV DQG WKH FRRUGLQDWHV LQ XVHUXQLWV RI WKH ODUJHVW DQG VPDOOHVW GLVSOD\HG YDOXHV IRU HDFK YDULDEOH FDQ EH DGGHG WR WKH SORW DIWHU LW KDV EHHQ GUDZQ 7KH ILJXUH EHORZ VKRZV ODEHOV DGGHG WR WKH SORW RI \ ¥...
  • Page 84 To label the axes with user-defined labels $;(6  6HOHFW WKH FRPPDQG IURP WKH FRPPDQG FDWDORJ N   (QWHU D OLVW FRQWDLQLQJ WKH KRUL]RQWDO DQG YHUWLFDO D[LV ODEHOV DV VWULQJV { KODEHO YODEHO }. $;(6 )RU H[DPSOH ^ <HDUV  (DUQLQJV `   3UHVV \ WR VWRUH WKH ODEHOV  3UHVV <...
  • Page 85 7KH IROORZLQJ GLDJUDP LV RI WKH VDPH SORW DV LQ WKH SUHYLRXV LOOXVWUDWLRQ EXW WKH D[HV QRZ PHHW ZKHUH [  DQG \  Plotting programs <RX FDQ SORW D SURJUDP LI LW WDNHV QRWKLQJ IURP WKH VWDFN XVHV WKH LQGHSHQGHQW YDULDEOH LQ WKH SURJUDP DQG UHWXUQV H[DFWO\ RQH XQWDJJHG QXPEHU WR WKH VWDFN Examples...
  • Page 86 Plotting range vs. display range 7KH SORWWLQJ UDQJH LV WKH UDQJH RI WKH LQGHSHQGHQW YDULDEOH RU YDULDEOHV RYHU ZKLFK WKH FXUUHQW HTXDWLRQ LV HYDOXDWHG ,I \RX GRQªW VSHFLI\ WKH SORWWLQJ UDQJH WKH +3 * XVHV WKH [D[LV GLVSOD\ UDQJH VSHFLILHG E\ ;51* RU E\ +9,(: DV WKH SORWWLQJ UDQJH +RZHYHU \RX FDQ VSHFLI\ D SORWWLQJ UDQJH WKDW LV GLIIHUHQW IURP WKH [D[LV GLVSOD\ UDQJH ‡...
  • Page 87  (QWHU D FRPSOH[ QXPEHU WR LQGLFDWH WKH FRRUGLQDWHV LQ XVHU XQLWV RI WKH FRUQHU RI 3,&7 GLDJRQDOO\ RSSRVLWH WKH FRUQHU VSHFLILHG DW VWHS  DERYH )RU H[DPSOH ¥¥     3UHVV \ 3UHVV <C WR VHH WKH UHVXOWV RI WKH UH GLPHQVLRQLQJ RI 3,&7 ,Q 531 PRGH IROORZ VWHSV   DQG  7R NHHS WKH VDPH GLVSOD\ UDQJHV 3,&7 3'0...
  • Page 88 Saving and Restoring Plots $ SORW FRQVLVWV RI VHYHUDO FRPSRQHQWV ‡ 7KH SORW SLFWXUH WKDW LV D JUDSKLF REMHFW  ‡ 7KH FXUUHQW HTXDWLRQ RU HTXDWLRQV VWRUHG LQ WKH UHVHUYHG YDULDEOH (4  ‡ 7KH FXUUHQW SORW SDUDPHWHUV VWRUHG LQ WKH UHVHUYHG YDULDEOH 33$5 DQG LQ WKH FDVH RI WKUHHGLPHQVLRQDO SORW W\SHV 93$5  ‡...
  • Page 89 To view a plot picture stored in a variable  3UHVV j  3UHVV WKH IXQFWLRQ NH\ FRUUHVSRQGLQJ WR WKH YDULDEOH FRQWDLQLQJ WKH SORW SLFWXUH <RX PD\ KDYH WR SUHVV l D QXPEHU RI WLPHV WR GLVSOD\ WKH YDULDEOH \RX ZDQW <RX PD\ DOVR KDYH WR FKDQJH GLUHFWRULHV LI WKH YDULDEOH LV QRW LQ WKH FXUUHQW GLUHFWRU\  3UHVV ] WR GLVSOD\ WKH SORW To save a reconstructable version of the current plot...
  • Page 90 To reconstruct a plot from its stored version 7KLV SURFHGXUH LV EHVW GRQH LQ 531 PRGH  3UHVV j  3UHVV WKH IXQFWLRQ NH\ DVVRFLDWHG ZLWK WKH YDULDEOH WKDW FRQWDLQV WKH VWRUHG YHUVLRQ RI WKH SORWªV FRPSRQHQWV 7<3( 2%- → WR GLVDVVHPEOH WKH OLVW DQG SXW WKH  3UHVV <N FRPSRQHQWV RQWR WKH VWDFN  3UHVV H WR GHOHWH WKH REMHFW RQ OHYHO  7KLV LV WKH QXPEHU RI LWHPV LQ...
  • Page 91 Chapter 11 Memory 7KLV VHFWLRQ GHVFULEHV WKH PHPRU\ VWUXFWXUH RI WKH +3 * ,W GHVFULEHV KRZ WR FUHDWH EDFNXS REMHFWV RI GDWD WKDW \RX ZDQW WR VDYH DQG KRZ WR XVH OLEUDULHV WR DGG IXQFWLRQDOLW\ WR WKH FDOFXODWRU How memory is structured 7KH +3 * FRQWDLQV D WRWDO RI  0E RI PHPRU\ 2I WKLV PHPRU\ ‡...
  • Page 92: Backup Objects

    8QOLNH WKH +20( GLUHFWRU\ SRUW PHPRU\ FDQQRW EH VXEGLYLGHG LQWR GLUHFWRULHV $ SRUW FDQ RQO\ FRQWDLQ WZR W\SHV RI REMHFWV ‡ EDFNXS REMHFWV ‡ OLEUDU\ REMHFWV Accessing port contents ,Q RUGHU WR DFFHVV WKH FRQWHQWV RI WKH YDULDEOHV VWRUHG LQ WKH SRUWV \RX FDQ XVH )LOH 0DQDJHU )RU GHWDLOV RQ KRZ WR XVH )LOH 0DQDJHU UHIHU WR WKH 8VHUªV *XLGH $OWHUQDWLYHO\ \RX FDQ DFFHVV WKH FRQWHQWV RI OLEUDULHV DQG SRUWV E\...
  • Page 93: Backing Up And Restoring Home

    <RX FDQ XVH )LOH 0DQDJHU WR FRS\ DQG GHOHWH EDFNXS REMHFWV LQ D VLPLODU IDVKLRQ WR QRUPDO FDOFXODWRU REMHFWV ,Q DGGLWLRQ WKHUH DUH VSHFLILF FRPPDQGV IRU PDQLSXODWLQJ EDFNXS REMHFWV Backing up and restoring HOME <RX FDQ EDFN XS DQG UHVWRUH WKH FRQWHQWV RI WKH HQWLUH +20( GLUHFWRU\ LQ D EDFNXS REMHFW 7KLV LQFOXGHV DOO YDULDEOHV DQG DQ\ NH\ DVVLJQPHQWV DQG DODUPV WKDW \RX KDYH FUHDWHG Backing up...
  • Page 94: Using Data In Backup Objects

    Storing and deleting backup objects 7KHUH DUH WKUHH ZD\V WR FUHDWH D EDFNXS REMHFW ‡ 8VH )LOH 0DQDJHU WR FRS\ WKH REMHFW WR D SRUW :LWK WKLV PHWKRG WKH EDFNXS REMHFW KDV WKH VDPH QDPH DV WKH RULJLQDO REMHFW ‡ 8VH WKH 672 FRPPDQG WR FRS\ WKH REMHFW WR D SRUW DQG DVVLJQ LW D QDPH 6HH &RPPDQG 5HIHUHQFH 3DUW ' IRU GHWDLOV RI WKH 672 FRPPDQG ‡...
  • Page 95 <RX FDQ DOVR H[HFXWH DQ REMHFW IURP WKH FRPPDQG OLQH DV IROORZV ‡ ,Q 531 PRGH ¥ 7R HYDOXDWH D EDFNXS REMHFW HQWHU :Port_Number: Backup_Name variable_name EVAL ¥ 7R UHFDOO D EDFNXS REMHFW WR WKH FRPPDQG OLQH HQWHU :Port_Number: Backup_Name variable_name RCL ‡...
  • Page 96: Installing And Attaching A Library

    Library objects $ OLEUDU\ LV D FROOHFWLRQ RI REMHFWV WKDW H[WHQG WKH FDOFXODWRUªV IXQFWLRQDOLW\ <RX FDQ H[HFXWH REMHFWV LQ D OLEUDU\ EXW \RX FDQ QHLWKHU YLHZ QRU HGLW WKHP <RX FDQ REWDLQ OLEUDULHV IURP YDULRXV ZHE VLWHV Installing and attaching a library 7R LQVWDOO D OLEUDU\ SHUIRUP WKH IROORZLQJ  &RS\ WKH OLEUDU\ WR \RXU +20( GLUHFWRU\ ¥...
  • Page 97: Deleting A Library

    ‡ ,Q 531 PRGH :port_number: lib_number PURGE ‡ ,Q DOJHEUDLF PRGH PURGE(:port_number: lib_number) How the HP 49G manages memory 7KH IROORZLQJ VHFWLRQ H[SODLQV KRZ WKH FDOFXODWRU PDQDJHV PHPRU\ LQ WKH YDULRXV SRUWV Port 0 3RUW  DQG WKH +20( GLUHFWRU\ VKDUH WKH VDPH PHPRU\ VSDFH 7KLV PHDQV...
  • Page 98 Port 2 3RUW  LV SDUW RI WKH )ODVK 520 $V ZLWK SRUW  LW LV QRW SRVVLEOH WR VWRUH REMHFWV ODUJHU WKDQ .% )ODVK 520 LV RUJDQL]HG DV  DUHDV RI .% HDFK DQG RQH DUHD RI .% 7KH PHWKRG WKDW WKH V\VWHP XVHV WR PDQDJH )ODVK 520 FDQ VRPHWLPHV DIIHFW RSHUDWLRQV LQ SRUW  :KHQ LW HUDVHV GDWD WKH V\VWHP PXVW HUDVH .E DUHDV DW D WLPH ,W FDQQRW HUDVH VLQJOH REMHFWV :KHQ \RX GHOHWH DQ REMHFW IURP IODVK 520 WKH REMHFW LV VLPSO\ IODJJHG DV GHOHWHG ,W VWLOO...
  • Page 99 Chapter 12 Date and time arithmetic Date and time formats 7KH IROORZLQJ WDEOH LOOXVWUDWHV WKH GDWH DQG WLPH IRUPDWV DYDLODEOH RQ WKH +3 * 7KH WLPH DQG GDWH LOOXVWUDWHG LV  RQ 0DUFK   Clock Display Format Number Format 'DWH  0RQWKGD\\HDU IRUPDW...
  • Page 100 <RX FDQ DOVR XVH WKLV SURFHGXUH WR VHW WKH GDWH DQG WLPH <RX FDQ DOVR VHW WKH GDWH E\ H[HFXWLQJ WKH → '$7( FRPPDQG DQG VHW WKH WLPH E\ H[HFXWLQJ WKH → 7,0( FRPPDQG Date and time tools 1XPHURXV WRROV IRU ZRUNLQJ ZLWK GDWHV DQG WLPHV DUH DYDLODEOH IURP WKH 7LPH PHQX Displaying the Time menu 7KHUH DUH WZR ZD\V WR DFFHVV WKLV PHQX...
  • Page 101 Calculating with dates To add days to a given date  (QWHU WKH GDWH LQ QXPEHU IRUPDW VHH WKH WDEOH RQ SDJH SDJH   )RU H[DPSOH  WKDW LV 0DUFK    '$7(  3UHVV N  (QWHU D UHDO QXPEHU UHSUHVHQWLQJ WKH QXPEHU RI GD\V \RX ZDQW WR DGG WR WKH GDWH HQWHUHG DW VWHS  )RU H[DPSOH   3UHVV \...
  • Page 102 To determine the number of days between two dates ''$<6  3UHVV N  (QWHU WKH ILUVW GDWH LQ QXPEHU IRUPDW VHH WKH WDEOH RQ SDJH SDJH   )RU H[DPSOH  WKDW LV 0DUFK     3UHVV >I  (QWHU WKH VHFRQG GDWH DOVR LQ QXPEHU IRUPDW )RU H[DPSOH  WKDW LV 0D\     3UHVV \ 7KH DQVZHU LV ...
  • Page 103 To convert a time in HMS format to decimal format →  3UHVV N  (QWHU WKH WLPH LQ +06 IRUPDW )RU H[DPSOH  WKDW LV  KRXUV  PLQXWHV DQG  VHFRQGV   3UHVV \ 7KH DQVZHU LV  KRXUV ,Q 531 PRGH IROORZ VWHSV  DQG  To add times in HMS format  3UHVV N...
  • Page 104 System time 6\VWHP WLPH LV NHSW LQ WLFNV RI WKH FORFN (DFK WLFN LV  RI D VHFRQG LQ GXUDWLRQ 6\VWHP WLPH FDQ EH FRQYHUWHG WR VWDQGDUG WLPH LQ ERWK GHFLPDO IRUPDW DQG +06 IRUPDW  To display system time 722/6 7,&.6  3UHVV >ç...
  • Page 105 To calculate elapsed time in seconds 722/6 7,&.6  7R SUHSDUH WR VWDUW WLPLQJ SUHVV >ç  7R VWDUW WLPLQJ SUHVV \ 722/6 7,&.6  7R SUHSDUH WR VWRS WLPLQJ SUHVV >ç  7R VWRS WLPLQJ SUHVV \  3UHVV Š  3UHVV m  6HOHFW WKH UHVXOW RI VWHS   3UHVV \ WZLFH...
  • Page 107 Chapter 13 Customization Creating menus 7KH +3 * HQDEOHV \RX WR FUHDWH D FXVWRP PHQX 7KH PHQX FDQ FRQWDLQ ODEHOV IRU RSHUDWLRQV FRPPDQGV DQG RWKHU REMHFWV WKDW \RX FUHDWH RU JURXS WRJHWKHU IRU \RXU FRQYHQLHQFH $ FXVWRP PHQX LV LGHQWLILHG E\ WKH UHVHUYHG YDULDEOH &67 7KHUHIRUH \RX FUHDWH D FXVWRP PHQX E\ QDPLQJ D OLVW RI PHQX LWHPV &67 <RX FDQ DOVR 0(18 XVH WKH...
  • Page 108: Customizing The Keyboard

    To display a custom menu  3UHVV < H 7KH PHQX ODEHOV DSSHDU DFURVV WKH ERWWRP RI \RXU VFUHHQ <RX DFFHVV D PHQX LWHP E\ SUHVVLQJ WKH FRUUHVSRQGLQJ IXQFWLRQ NH\ Customizing the keyboard <RX FDQ DVVLJQ DOWHUQDWLYH IXQFWLRQDOLW\ WR DQ\ NH\ RQ WKH NH\ERDUG LQFOXGLQJ DOSKD DQG VKLIWHG NH\V  7KLV HQDEOHV \RX WR FXVWRPL]H WKH NH\ERDUG WR \RXU SDUWLFXODU QHHGV <RXU FXVWRPL]HG NH\ERDUG LV FDOOHG WKH XVHU NH\ERDUG DQG LW LV DFWLYH...
  • Page 109 Assigning user keys <RX FDQ DVVLJQ FRPPDQGV DQG RWKHU REMHFWV WR D XVHU NH\ LQFOXGLQJ VKLIWHG NH\V  To assign an object to a user key  3UHVV N  (QWHU WKH REMHFW WR EH DVVLJQHG WR WKH XVHU NH\  3UHVV >I  (QWHU WKH NH\ FRGH WKDW LGHQWLILHV WKH XVHU NH\ 7KH FRGH LV PDGH XS RI WKH URZ QXPEHU FROXPQ QXPEHU DQG VKLIWHG VWDWXV )RU H[DPSOH  LQGLFDWHV WKH NH\ DW URZ  DQG FROXPQ  ZKHQ...
  • Page 110 To assign a command to a user key 672.(<6  3UHVV N  %HWZHHQ WKH SDUHQWKHVHV HQWHU D OLVW ZLWK WKH FRPPDQG QDPH DV WKH ILUVW HOHPHQW¦HQFORVHG ZLWKLQ WLFN PDUNV¦DQG WKH XVHU NH\ FRGH DV WKH VHFRQG HOHPHQW 8VHU NH\ FRGHV DUH H[SODLQHG LQ WKH LOOXVWUDWLRQ DERYH 672.(<6 7,0( )RU H[DPSOH...
  • Page 111 To enable disabled keys '(/.(<6  3UHVV N  7\SH  WKDW LV ]HUR   3UHVV \ ,Q 531 PRGH IROORZ VWHSV  DQG  ,I \RX DVVLJQ RU GLVDEOH WKH NH\V QHFHVVDU\ WR UHHQDEOH NH\V RU QHFHVVDU\ WR FDQFHO XVHU PRGH \RX ZLOO EH VWXFN LQ XVHU PRGH <RX ZLOO WKHQ QHHG WR UHERRW WKH FDOFXODWRU E\ KROGLQJ ; SUHVVLQJ DQG UHOHDVLQJ c DQG WKHQ UHOHDVLQJ ; Recalling and editing user key assignments...
  • Page 112: Command Index

    Command Index A B C D E F G H I J K L M N O P Q R S T U V W X Y Z Symbols Σ 115 → → → → 117 → → 87 Σ 119 →...
  • Page 113 → λ 162 → 139 → → → 185 → → 170 → 156 → → 189 → 1-428 Command Reference: Index...
  • Page 114 → → → 209 → → → 209 → ↓ ↑ Σ 239 Σ 227 → → 242 → 230 → 213 → Command Reference: Index 1-429...
  • Page 115 Σ 287 → 303 → → → → → → π 277 → → 1-430 Command Reference: Index...
  • Page 116 Σ 317 → → → Σ 343 → → 343 → → 378 Command Reference: Index 1-431...
  • Page 117 → Σ Σ π 408 → ∂ 409 ≤ 409 ≥ 411 ≠ 412 → 413 Symbols √ 403 ∫ 405 Σ Σ 406 Σ+ 407 Σ Σ Σ 1-432 Command Reference: Index...

Comments to this Manuals

Symbols: 0
Latest comments: