User manual HP 49G GRAPHING CALCULATOR

Lastmanuals offers a socially driven service of sharing, storing and searching manuals related to use of hardware and software : user guide, owner's manual, quick start guide, technical datasheets... DON'T FORGET : ALWAYS READ THE USER GUIDE BEFORE BUYING !!!

If this document matches the user guide, instructions manual or user manual, feature sets, schematics you are looking for, download it now. Lastmanuals provides you a fast and easy access to the user manual HP 49G GRAPHING CALCULATOR. We hope that this HP 49G GRAPHING CALCULATOR user guide will be useful to you.

Lastmanuals help download the user guide HP 49G GRAPHING CALCULATOR.


Mode d'emploi HP 49G GRAPHING CALCULATOR
Download

You may also download the following manuals related to this product:

   HP 49g graphing calculator annexe 1 (14907 ko)
   HP 49g graphing calculator annexe 2 (2574 ko)

Manual abstract: user guide HP 49G GRAPHING CALCULATOR

Detailed instructions for use are in the User's Guide.

[. . . ] x USA . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . x Canada . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xi Japan . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xi End-user terms and conditions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . [. . . ] 8-6 Creating a list . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10-4 Algebraic and RPN modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10-5 Using functions that require arguments . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10-5 Handling data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10-6 Input data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10-6 Output data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10-6 How a program flows . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10-6 Nested procedures . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10-7 Working with variables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10-8 Using local variables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10-8 Setting variables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . RU \ Input form help , Q DGGLWLRQ WR WKH KHOS PHVVDJH WKDW SURPSWV \RX IRU LQSXW IXUWKHU KHOS LV SURYLGHG E\ ZD\ RI D OLVW RI YDOLG REMHFW W\SHV IRU D ILHOG 7R GLVSOD\ WKLV OLVW IRU D SDUWLFXODU ILHOG PRYH WKH FXUVRU WR WKH ILHOG SUHVV 7<3(6 IRXQG RQ WKH VHFRQG SDJH RI WKH IXQFWLRQ NH\ PHQX 7R KLGH WKH OLVW RI YDOLG REMHFW W\SHV SUHVV G Page 2-16 Basic operation Using calculated values as input :LWK DQ LQSXW IRUP GLVSOD\HG \RX FDQ SHUIRUP D FDOFXODWLRQ DQG SODFH WKH UHVXOW RI WKH FDOFXODWLRQ GLUHFWO\ LQWR D ILHOG 0RYH WKH FXUVRU WR WKH ILHOG ZKRVH YDOXH \RX ZLVK WR FDOFXODWH 3UHVV &$/& 7KH &$/& FRPPDQG LV RQ WKH VHFRQG SDJH RI WKH IXQFWLRQ NH\ PHQX 3HUIRUP WKH GHVLUHG FDOFXODWLRQ , I LW LV QRW DOUHDG\ D UHDO QXPEHU FRQYHUW WKH UHVXOW WR D UHDO QXPEHU E\ SUHVVLQJ > 3UHVV 2. WR UHWXUQ WR WKH LQSXW IRUP 7KH UHVXOW WR WKH FDOFXODWLRQ ZLOO EH LQ WKH ILHOG \RX KLJKOLJKWHG DW VWHS Basic operation Closing an input form $Q LQSXW IRUP PLJKW EH XVHG WR PDNH JOREDO FKDQJHVIRU H[DPSOH FKDQJLQJ WKH GDWH RU WLPHRU WR VHW XS WKH SDUDPHWHUV IRU VRPH RWKHU RSHUDWLRQ VXFK DV VHWWLQJ WKH FRRUGLQDWHV IRU SORWWLQJ D SDUWLFXODU HTXDWLRQ , I \RXU LQSXW IRUP ZLOO FKDQJH JOREDO VHWWLQJV SUHVV 2. 7KLV VDYHV \RXU VHWWLQJV DQG FORVHV WKH IRUP , I \RXU LQSXW IRUP LV GHVLJQHG WR UHFRUG WKH SDUDPHWHUV IRU VRPH IXUWKHU RSHUDWLRQ D PHQX NH\ LV GLVSOD\HG UHSUHVHQWLQJ WKDW IXUWKHU RSHUDWLRQ )RU H[DPSOH WKH LQSXW IRUPV IRU SORWWLQJ D JUDSK ZLOO GLVSOD\ D PHQX LWHP ODEHOOHG '5$: 3UHVVLQJ WKH FRUUHVSRQGLQJ IXQFWLRQ NH\ FDXVHV WKH HTXDWLRQV VSHFLILHG WR EH GUDZQ DFFRUGLQJ WR WKH SDUDPHWHUV VSHFLILHG RQ WKH LQSXW IRUPV 6HH FKDSWHU 3ORWWLQJ JUDSKV IRU PRUH LQIRUPDWLRQ RQ SORWWLQJ 7R FORVH DQ LQSXW IRUP DQG GLVFDUG WKH YDOXHV \RX KDYH HQWHUHG SUHVV G Basic operation Page 2-17 Modes $ PRGH LV D ZD\ LQ ZKLFK WKH +3 * EHKDYHV 7KHUH DUH QXPHURXV PRGHV )RU H[DPSOH RQH PRGH LV WKH ZD\ WKDW QXPEHUV DUH GLVSOD\HG ZLWK D IL[HG QXPEHU RI GHFLPDO SODFHV LQ VFLHQWLILF QRWDWLRQ DQG VR RQ $QRWKHU PRGH FRQWUROV WKH XQLWV LQ ZKLFK DQJXODU PHDVXUHPHQWV DUH LQWHUSUHWHG GHJUHHV UDGLDQV RU JUDGLDQV Basic operation Changing a mode (DFK PRGH KDV D GHIDXOW VHWWLQJ 7R FKDQJH D VHWWLQJ 3UHVV h 7KH &DOFXODWRU 0RGHV LQSXW IRUP LV GLVSOD\HG 7KLV LQSXW IRUP HQDEOHV \RX WR FKDQJH WKH VHWWLQJV RI WKRVH PRGHV WKDW DUH PRVW OLNHO\ WR QHHG FKDQJLQJ , W DOVR JLYHV \RX DFFHVV WR LQSXW IRUPV IRU FKDQJLQJ GLVSOD\ PRGHV DQG &$6 PRGHV 7KH PRGHV WKDW FDQ EH FKDQJHG DUH GLVFXVVHG LQ WKH QH[W WKUHH VHFWLRQV &KDQJH WKH VHWWLQJ RI D PRGH 6HH , QSXW IRUPV RQ SDJH IRU LQIRUPDWLRQ RQ FKDQJLQJ WKH YDOXHV LQ ILHOGV RQ LQSXW IRUPV 3UHVV 2. Calculator Modes 7KH FDOFXODWRU PRGHV DUH 2SHUDWLQJ PRGH FRQWUROV KRZ WKH +3 * LQWHUSUHWV DQG GLVSOD\V FDOFXODWLRQV 6HH $OJHEUDLF DQG 531 PRGHV RQ SDJH 1XPEHU IRUPDW FRQWUROV KRZ QXPEHUV DUH GLVSOD\HG DQG WKH QXPEHU RI GHFLPDO SODFHV GLVSOD\HG 6HH 1XPEHU GLVSOD\V RQ SDJH $QJOH PHDVXUH FRQWUROV WKH XQLWV LQ ZKLFK DQJXODU PHDVXUHPHQWV DUH LQWHUSUHWHG GHJUHHV UDGLDQV RU JUDGLDQV &RRUGLQDWH V\VWHP FRQWUROV KRZ FRPSOH[ QXPEHUV DQG YHFWRUV DUH GLVSOD\HG 6HH FKDSWHU IRU PRUH LQIRUPDWLRQ %HHS D FKHFN ILHOG WKDW HQDEOHV \RX WR WXUQ RQ RU WXUQ RII WKH V\VWHP EHHS Page 2-18 Basic operation . H\ FOLFN D FKHFN ILHOG WKDW HQDEOHV \RX WR WXUQ RQ RU WXUQ RII WKH EHHS WKDW VRXQGV ZKHQ \RX SUHVV D NH\ )UDFWLRQ PDUN ODEHOOHG )0 D FKHFN ILHOG WKDW HQDEOHV \RX WR FKDQJH WKH SXQFWXDWLRQ XVHG WR VHSDUDWH WKH LQWHJHU IURP WKH IUDFWLRQDO FRPSRQHQW RI D UHDO QXPEHU 7KH GHIDXOW LV D SHULRG 7R XVH D FRPPD SODFH D FKHFN PDUN LQ WKLV ILHOG /DVW VWDFN D FKHFN ILHOG WKDW HQDEOHV \RX WR VDYH PHPRU\ E\ GLVDEOLQJ WKH XQGR IXQFWLRQ 1RWH WKDW WKH $16 FRPPDQG UHTXLUHV WKH /DVW VWDFN ILHOG WR EH FKHFNHG Basic operation Display modes 'LVSOD\ PRGHV GHWHUPLQH WKH VL]H RI WKH IRQW LQ KLVWRU\ RQ WKH FRPPDQG OLQH DQG LQ (TXDWLRQ :ULWHU 7KH\ DOVR GHWHUPLQH WKH IRQW XVHG WKH QXPEHU RI VWDWXV OLQHV GLVSOD\HG RU DQG ZKHWKHU DQG KRZ WKH FORFN LV GLVSOD\HG 7R FKDQJH D GLVSOD\ PRGH 3UHVV h 7KH &DOFXODWRU 0RGHV LQSXW IRUP LV GLVSOD\HG 3UHVV ', 63 7KH 'LVSOD\ 0RGHV LQSXW IRUP LV GLVSOD\HG &KDQJH WKH VHWWLQJ 3UHVV 2. 7KH GLVSOD\ PRGHV DUH )RQW HQDEOHV \RX WR FKRRVH D SDUWLFXODU IRQW DV WKH VWDQGDUG V\VWHP IRQW (GLW 6PDOO HQDEOHV \RX WR FKRRVH WKH PLQLIRQW IRU FRPPDQG OLQH HQWULHV 7KH PLQLIRQW LV D VPDOO SL[HOE\SL[HO IRQW )XOO 3DJH HQDEOHV WKH FXUVRU WR EH SODFHG DQ\ZKHUH RQ WKH VFUHHQ GXULQJ HGLWLQJ UDWKHU WKDQ EHLQJ UHVWULFWHG WR WKH WH[W EHLQJ HGLWHG , QGHQW VZLWFKHV RQ DXWRPDWLF OLQH LQGHQWLQJ LQ PXOWLOLQH FRPPDQG OLQH HQWULHV 6WDFN 6PDOO HQDEOHV \RX WR FKRRVH WKH PLQLIRQW IRU WKH KLVWRU\ DQG VWDFN GLVSOD\ Basic operation Page 2-19 7H[WERRN HQDEOHV \RX WR GLVSOD\ H[SUHVVLRQV DQG HTXDWLRQV LQ VLQJOH OLQH IRUPDW ZLWK A HWF LQVWHDG RI WUDGLWLRQDO WH[WERRN IRUPDW ZLWK VWDFNHG IUDFWLRQV UDLVHG H[SRQHQWV HWF (4: 6PDOO HQDEOHV \RX WR FKRRVH WKH PLQLIRQW IRU HQWULHV LQ (TXDWLRQ :ULWHU Basic operation (4: 6PDOO 6WDFN 'LVS HQDEOHV \RX WR GLVSOD\ HTXDWLRQV DQG H[SUHVVLRQV LQ WKH PLQLIRQW ZKLOH RWKHU REMHFWV DUH GLVSOD\HG LQ WKH V\VWHP IRQW 7KLV KDV HIIHFW RQO\ LI \RX DUH LQ WH[WERRN PRGH +HDGHU GHWHUPLQHV WKH QXPEHU RI OLQHV RI LQIRUPDWLRQ GLVSOD\HG LQ WKH KHDGHUWKDW LV LQ WKH VWDWXV DUHDRI WKH VFUHHQ 9DOLG YDOXHV DUH DQG &ORFN HQDEOHV \RX FRQWURO ZKHWKHU WKH GDWH DQG WLPH DUH GLVSOD\HG $QDORJ HQDEOHV \RX FKRRVH EHWZHHQ D GLJLWDO DQG DQDORJ IRUPDW IRU WKH FORFN GLVSOD\ CAS modes &HUWDLQ PRGHV UHODWH WR WKH +3 *V FRPSXWHU DOJHEUD V\VWHP &$6 6RPH H[DPSOHV DUH WKH GHIDXOW LQGHSHQGHQW YDULDEOH PRGXOR YDULDEOH DQG FRPSOH[ QXPEHU GLVSOD\ &$6 PRGHV DUH GLVFXVVHG LQ GHWDLO LQ FKDSWHU 7R FKDQJH D &$6 PRGH 3UHVV h 7KH &DOFXODWRU 0RGHV LQSXW IRUP LV GLVSOD\HG 3UHVV &$6 7KH &$6 0RGHV LQSXW IRUP LV GLVSOD\HG &KDQJH WKH VHWWLQJ 3UHVV 2. Flags 7KH PRGHV WKDW \RX DUH PRUH OLNHO\ WR ZDQW WR FKDQJH FDQ EH FKDQJHG HDVLO\ XVLQJ WKH LQSXW IRUPV GHVFULEHG LQ WKH ODVW WKUHH VHFWLRQV 7KHUH DUH KRZHYHU PDQ\ PRUH PRGHV WKDW \RX FDQ FKDQJH 7KHVH DGGLWLRQDO PRGHV FDQ EH FKDQJHG E\ VHWWLQJ RU FOHDULQJ FHUWDLQ IODJV )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 Page 2-20 Basic operation <RX FDQ GLVSOD\ D OLVW RI IODJV E\ SUHVVLQJ )/$*6 ZKHQ WKH &DOFXODWRU 0RGHV LQSXW IRUP LV GLVSOD\HG :LWK WKH OLVW GLVSOD\HG \RX FDQ VHW RU FOHDU SDUWLFXODU IODJV 7R VHW RU FOHDU D IODJ 3UHVV ] RU [ XQWLO WKH IODJ \RX ZDQW WR FKDQJH LV KLJKOLJKWHG Basic operation 3UHVV &+. , I WKH IODJ ZDV VHW EHIRUH LW LV FOHDUHG LI LW ZDV FOHDUHG EHIRUH LW LV QRZ VHW 7KH IODJ LV VHW LI LW KDV D FKHFN PDUN EHVLGH LW Algebraic and RPN modes 7KH +3 * SURYLGHV WZR PRGHV IRU LQWHUSUHWLQJ DQG GLVSOD\LQJ FDOFXODWLRQV DOJHEUDLF DQG 531 Algebraic mode $OJHEUDLF PRGH LV WKH GHIDXOW PRGH , Q WKLV PRGH \RX SHUIRUP FDOFXODWLRQV E\ HQWHULQJ WKH DUJXPHQWV DIWHU WKH FRPPDQG ZKLFK LQ PRVW FDVHV PHDQV HQWHULQJ QXPEHUV IXQFWLRQV DQG RSHUDWRUV LQ WKH VDPH RUGHU WKDW \RX ZRXOG ZULWH GRZQ WKH H[SUHVVLRQ RQ SDSHU )RU H[DPSOH WR ILQG VLQ LQ DOJHEUDLF PRGH \RX HQWHU WKH FRPPDQG sDQG WKHQ WKH DUJXPHQW <RX HQWHU WKH FRPPDQG DQG LWV DUJXPHQWV RQ WKH FRPPDQG OLQH DQG SUHVV \ WR REWDLQ WKH UHVXOW LQ H[DFW PRGH RU SUHVV > WR REWDLQ WKH UHVXOW LQ DSSUR[LPDWH PRGH ([DFW PRGH DQG DSSUR[LPDWH PRGHV DUH H[SODLQHG RQ SDJH , I D FDOFXODWLRQ \LHOGV D QXPEHU RI UHVXOWV WKH UHVXOWV DUH GLVSOD\HG WRJHWKHU LQ D OLVW ^UHVXOW UHVXOW UHVXOW ` , Q DOJHEUDLF PRGH SUHYLRXV FDOFXODWLRQV DUH UHWDLQHG LQ KLVWRU\ WRJHWKHU ZLWK WKHLU UHVXOWV (DFK FDOFXODWLRQ LV GLVSOD\HG DW WKH OHIW RI WKH VFUHHQ DQG WKH FRUUHVSRQGLQJ UHVXOW LV GLVSOD\HG RQ WKH QH[W OLQH DW WKH ULJKW RI WKH VFUHHQ DV LQ WKH H[DPSOH RQ WKH ULJKW Basic operation Page 2-21 <RX FDQ XVH WKH UHVXOW RI D SUHYLRXV FDOFXODWLRQ LQ D QHZ FDOFXODWLRQ E\ HQWHULQJ $16Q ZKHUH Q LV WKH QXPEHU RI WKH DQVZHU IRU WKH ODVW DQVZHU IRU WKH VHFRQG ODVW DQG VR RQ :KHQ \RX SUHVV \ WKH FRUUHVSRQGLQJ DQVZHU LV FRSLHG WR WKH FXUVRU ORFDWLRQ RQ WKH FRPPDQG OLQH Basic operation 531 PRGH 531 VWDQGV IRU UHYHUVH 3ROLVK QRWDWLRQ , Q 531 PRGH \RX W\SLFDOO\ HQWHU DQ DUJXPHQW EHIRUH WKH FRPPDQG )RU H[DPSOH WR ILQG VLQ LQ 531 PRGH \RX HQWHU WKH DUJXPHQW DQG WKHQ VSHFLI\ WKH FRPPDQG s , Q 531 PRGH WKH UHVXOWV RI SUHYLRXV FDOFXODWLRQV DUH OLVWHG DV WKH\ DUH LQ DOJHEUDLF PRGH +RZHYHU RQO\ WKH UHVXOWVQRW WKH FDOFXODWLRQVDUH OLVWHG 7KLV OLVW RI SULRU UHVXOWVDQG RWKHU REMHFWVLV NQRZQ DV WKH VWDFN DQG HDFK LWHP RQ WKH VWDFN LV QXPEHUHG DV LQ WKH H[DPSOH DW WKH ULJKW , I D FDOFXODWLRQ \LHOGV D QXPEHU RI UHVXOWV HDFK UHVXOW LV GLVSOD\HG DV D VHSDUDWH LWHP RQ WKH VWDFN 6RPH UHVXOWV PD\ KRZHYHU EH JLYHQ DV D OLVW RI UHVXOWV 7KH +3 * KDV QXPHURXV FRPPDQGV IRU PDQLSXODWLQJ WKH REMHFWV RQ WKH VWDFN 6HH DSSHQGL[ ( :RUNLQJ LQ 531 PRGH )RU LQIRUPDWLRQ RQ VZLWFKLQJ EHWZHHQ DOJHEUDLF DQG 531 GLVSOD\ PRGHV VHH &KDQJLQJ D PRGH RQ SDJH Exact and approximate modes 7KH UHVXOWV RI FDOFXODWLRQV FDQ EH GLVSOD\HG LQ H[DFW PRGH RU DSSUR[LPDWH PRGH 7KH GHIDXOW UHVXOWV PRGHIRU ERWK DOJHEUDLF DQG 531 GLVSOD\ PRGHVLV H[DFW 6HH &KDQJLQJ D PRGH RQ SDJH IRU LQIRUPDWLRQ RQ KRZ WR FKDQJH PRGHV 6HH FKDSWHU :RUNLQJ ZLWK H[SUHVVLRQV IRU LQIRUPDWLRQ RQ KRZ WKLV PRGH DIIHFWV FRPSXWHU DOJHEUD IXQFWLRQV Page 2-22 Basic operation Exact mode , Q H[DFW PRGH DQ\ UHVXOW WKDW LV QRW D ZKROH QXPEHU LV GLVSOD\HG LQ IUDFWLRQDO RU V\PEROLF IRUP )RU H[DPSOH ZLOO \LHOG EHFDXVH LV D ZKROH QXPEHU ZKLOH ZLOO \LHOG VLQFH LV QRW D ZKROH QXPEHU 6LPLODUO\ VLQ \LHOGV 2 / 2 UDWKHU WKDQ Basic operation )XUWKHU H[DPSOHV DUH JLYHQ LQ &RPPDQG OLQH FDOFXODWLRQV RQ SDJH 1RWH WKDW \RX FDQ IRUFH WKH FDOFXODWRU WR \LHOG DQ DSSUR[LPDWH DQVZHU ZKLOH LQ H[DFW PRGH E\ HQWHULQJ DW OHDVW RQH LQWHJHU DV D UHDO QXPEHUWKDW LV E\ IROORZLQJ WKH LQWHJHU ZLWK D GHFLPDO SRLQWVHH , QWHJHUV DQG UHDO QXPEHUV RQ SDJH RU SUHVVLQJ > UDWKHU WKDQ \ WR JHW WKH UHVXOW Approximate mode , Q DSSUR[LPDWH PRGH DOO QXPHULF UHVXOWV DUH GLVSOD\HG LQ IORDWLQJSRLQW IRUP ZKHUH SRVVLEOH )RU H[DPSOH VLQ \LHOGV UDWKHU WKDQ 2 / 2 )XUWKHU H[DPSOHV DUH JLYHQ LQ &RPPDQG OLQH FDOFXODWLRQV RQ WKH QH[W SDJH Basic operation Page 2-23 Command line calculations 7KLV VHFWLRQ SURYLGHV D QXPEHU RI H[DPSOHV RI FRPPRQ W\SHV RI FDOFXODWLRQV 7KH NH\VWURNHV QHHGHGLQ DOJHEUDLF PRGHWR HQWHU WKH FDOFXODWLRQ RQ WKH FRPPDQG OLQH DQG WKH UHVXOW LQ ERWK H[DFW DQG DSSUR[LPDWH PRGH DUH OLVWHG 7KH H[DPSOHV DVVXPH WKDW WKH FDOFXODWRU LV RSHUDWLQJ ZLWK LWV GHIDXOW PRGH VHWWLQJV &KDSWHUV DQG H[SODLQ KRZ WR XVH WKH FRPPDQGV DQG IXQFWLRQV RI WKH FDOFXODWRUV FRPSXWHU DOJHEUD V\VWHP WR VHW XS DQG VROYH PRUHFRPSOH[ FDOFXODWLRQV 6HH FKDSWHU IRU LQIRUPDWLRQ RQ KRZ WR FRQILJXUH PRGHV WR JHW V\PEROLF UHVXOWV WR FDOFXODWLRQV ([DPSOH . H\V ([DFW $SSUR[LPDWH ([DPSOH . H\V ([DFW $SSUR[LPDWH ([DPSOH . H\V ([DFW $SSUR[LPDWH <_=}<_\ 45 / 12 r z \ 5/4 4 2 Basic operation qw\ 1RWH WKDW WKH w NH\ FKDQJHV WKH VLJQ RI WKH ODVW QXPEHU HQWHUHG ([DPSOH . H\V ([DFW $SSUR[LPDWH 4 2401 > > I \ Page 2-24 Basic operation ([DPSOH . H\V ([DFW $SSUR[LPDWH ([DPSOH . H\V ([DFW $SSUR[LPDWH x 1 5 2 dx >>I>Iq>I\ cos - 3 rt<z\ 2/2 Basic operation Basic operation Page 2-25 Time Management %\ GHIDXOW WKH +3 * GRHV QRW VKRZ WKH GDWH DQG WLPH <RX FDQ WXUQ WKLV IXQFWLRQ RQ E\ VHOHFWLQJ &/2&. RQ WKH 'LVSOD\ 0RGHV LQSXW IRUP DV H[SODLQHG RQ SDJH :KHQ WKH FORFN IXQFWLRQ LV RQ WKH GDWH DQG WLPH DSSHDU RQ WKH VHFRQG OLQH RI WKH VWDWXV DUHD Basic operation (YHQ LI \RX KDYH FKRVHQ QRW WR GLVSOD\ WKH FORFN \RX FDQ XVH WKH DSSRLQWPHQWV IHDWXUH RI WKH +3 * WR VHW UHPLQGHUV RU WR VHW SURJUDPV WR UXQ DW D VSHFLILHG WLPH Setting the date and time 7R VHW WKH GDWH RU WLPH 3UHVV > 3UHVV ]] WR KLJKOLJKW WKH 6(7 7, 0( '$7( IXQFWLRQ DQG WKHQ SUHVV 2. 7KH 6HW 7LPH DQG 'DWH LQSXW IRUP LV GLVSOD\HG 3UHVV WKH DSSURSULDWH DUURZ NH\V WR KLJK OLJKW D YDOXH \RX ZDQW WR VHW RU FKDQJH &KDQJH WKH YDOXH (DFK WLPH DQG GDWH ILHOG RQ WKLV LQSXW IRUP LV ERWK D GDWD ILHOG DQG D OLVW ILHOG 6HH , QSXW IRUP ILHOGV RQ SDJH IRU LQIRU PDWLRQ RQ KRZ WR HGLW WKH ILHOGV RQ DQ LQSXW IRUP 5HSHDW IURP VWHS LI WKHUH DUH RWKHU YDOXHV \RX ZDQW WR FKDQJH :KHQ DOO WKH YDOXHV DUH FRUUHFW SUHVV 2. 7KH LQSXW IRUP FORVHV DQG WKH QHZ GDWH DQG WLPH LV GLVSOD\HG RQ WKH VWDWXV OLQH SURYLGLQJ WKDW \RX KDYH FKRVHQ WR GLVSOD\ WKH FORFN DQG WKH VWDWXV DUHD Page 2-26 Basic operation Changing the format of the date or time 7R FKDQJH WKH IRUPDW RI WKH GDWH RU WLPH 3UHVV > 3UHVV ]] WR KLJKOLJKW WKH 6(7 7, 0( '$7( IXQFWLRQ DQG WKHQ SUHVV 2. 7KH 6(7 7, 0( $1' '$7( LQSXW IRUP LV GLVSOD\HG 3UHVV WKH DSSURSULDWH DUURZ NH\V WR KLJKOLJKW WKH IRUPDW ILHOG \RX ZDQW WR FKDQJH 7KH IRUPDW ILHOGV DUH WKH WZR ILHOGV DW WKH IDU ULJKW RI WKH VFUHHQ &KDQJH WKH IRUPDW 7KH IRUPDW ILHOGV DUH OLVW ILHOGV 6HH , QSXW IRUP ILHOGV RQ SDJH IRU LQIRUPDWLRQ RQ KRZ WR HGLW OLVW ILHOGV RQ DQ LQSXW IRUP , I \RX ZDQW WR FKDQJH DQRWKHU IRUPDW UHSHDW IURP VWHS :KHQ \RX KDYH ILQLVKHG SUHVV 2. 7KH LQSXW IRUP FORVHV DQG WKH GDWH DQG WLPH LV GLVSOD\HG LQ WKH IRUPDWV \RX VHW Basic operation Alarms <RX FDQ VHW WZR W\SHV RI DODUPV DSSRLQWPHQW DODUPV DQG FRQWURO DODUPV Appointment alarms $Q DSSRLQWPHQW DODUP LV DQ DODUP \RX VHW WR JR RII DW D SDUWLFXODU WLPH RQ D SDUWLFXODU GDWH 7\SLFDOO\ DQ DSSRLQWPHQW DODUP LV DFFRPSDQLHG E\ D XVHUVHW PHVVDJH IRU H[DPSOH D UHPLQGHU :KHQ WKH DODUP IDOOV GXH D EHHS LV HPLWWHG DW VKRUW LQWHUYDOV IRU DERXW VHFRQGV , I \RX DOVR VSHFLILHG D PHVVDJH ZKHQ VHWWLQJ WKH DODUP WKDW PHVVDJH LV GLVSOD\HG LQ WKH VWDWXV DUHD DORQJ ZLWK WKH DODUP DQQXQFLDWRU 7KH PHVVDJH LV GLVSOD\HG RQO\ ZKLOH WKH DODUP LV VRXQGLQJ <RX DFNQRZOHGJH DQ DSSRLQWPHQW DODUP E\ SUHVVLQJ D NH\ ZKLOH WKH DODUP LV VRXQGLQJ 7KH EHHS VWRSV WKH DQQXQFLDWRU GLVDSSHDUV DQG WKH PHVVDJH LV GHOHWHG , I \RX GR QRW SUHVV D NH\ ZKLOH WKH DODUP LV VRXQGLQJ WKH PHVVDJH GLVDSSHDUV EXW LW LV QRW GHOHWHG 6HH &KHFNLQJ FKDQJLQJ DQG GHOHWLQJ DODUPV RQ SDJH IRU LQIRUPDWLRQ RQ IROORZLQJ XS DODUPV WKDW \RX KDYH PLVVHG , I WKH DODUP LV D QRQUHSHDWLQJ DODUP H[SODLQHG LQ WKH QH[W Basic operation Page 2-27 VHFWLRQ WKH DQQXQFLDWRU UHPDLQV GLVSOD\HG WR LQGLFDWH WKDW \RX KDYH DQ DSSRLQWPHQW \RX KDYH QRW DFNQRZOHGJHG , I WKH FDOFXODWRU LV VZLWFKHG RII LW DXWRPDWLFDOO\ VZLWFKHV RQ ZKHQ WKH DODUP LV GXH WR JR RII 7KH DODUP VRXQGV DQG WKH DVVRFLDWHG PHVVDJH LV GLVSOD\HG Basic operation $Q\ QXPEHU RI DSSRLQWPHQW DODUPV FDQ EH VHW Setting an appointment alarm 3UHVV > 3UHVV ] WR KLJKOLJKW WKH 6(7 $/$50 IXQFWLRQ DQG WKHQ SUHVV 2. 7KH 6(7 $/$50 LQSXW IRUP LV GLVSOD\HG , I \RX ZDQW WR VHW D PHVVDJH WKDW ZLOO EH GLVSOD\HG ZKHQ WKH DODUP JRHV RII D 3UHVV > K , I \RX XVH DQ\ RWKHU GHOLPLWHU WKH +3 * ZLOO FRQVLGHU WKH DODUP WR EH D FRQWURO DODUP VHH SDJH SDJH E (QWHU WKH PHVVDJH 6HH (QWHULQJ FKDUDFWHUV RQ SDJH IRU LQIRUPDWLRQ RQ KRZ WR HQWHU WH[W F 3UHVV 2. 2QO\ DV PXFK RI \RXU PHVVDJH DV ZLOO ILW RQ RQH OLQH RI WKH VFUHHQ ZLOO EH GLVSOD\HG VR \RX VKRXOG NHHS \RXU PHVVDJH EULHI , I \RX KDYH HQWHUHG D PHVVDJH WKH +RXU ILHOG LV QRZ KLJKOLJKWHG , I \RX GLG QRW HQWHU D PHVVDJH SUHVV ] XQWLO WKH +RXU ILHOG LV KLJKOLJKWHG &KDQJH WKH WLPH WLPH IRUPDW DQG GDWH WR WKH WLPH DQG GDWH WKDW \RX ZDQW WKH DODUP WR VRXQG 6HH , QSXW IRUP ILHOGV RQ SDJH IRU LQIRUPDWLRQ RQ KRZ WR VHW WKH ILHOGV RQ DQ LQSXW IRUP , I \RX ZDQW WKH DODUP WR UHSHDW DW UHJXODU LQWHUYDOV D +LJKOLJKW WKH 5HSHDW ILHOG E 7\SH D YDOXH IRU WKH UHSHDW LQWHUYDO F 3UHVV 2. [. . . ] +3 Inputs [ Q 3RSXODWLRQ SURSRUWLRQ RI VXFFHVVHV 1XPEHU RI VXFFHVVHV LQ WKH VDPSOH Using statistics 6DPSOH VL]H 6LJQLILFDQFH OHYHO 3URSRUWLRQ RI VXFFHVVHV LQ WKH VDPSOH =WHVW VWDWLVWLF 3UREDELOLW\ DVVRFLDWHG ZLWK WKH =WHVW VWDWLVWLF %RXQGDU\ YDOXH RI = DVVRFLDWHG ZLWK WKH OHYHO WKDW \RX VXSSOLHG Results 7HVW 3 7HVW = 3URE &ULWLFDO = Using statistics Page 9-11 Two-Proportion Z-Test Menu name: =7HVW 33 2Q WKH EDVLV RI VWDWLVWLFV IURP WZR VDPSOHV HDFK IURP D GLIIHUHQW SRSXODWLRQ PHDVXUHV WKH VWUHQJWK RI WKH HYLGHQFH IRU D VHOHFWHG K\SRWKHVLV DJDLQVW WKH QXOO K\SRWKHVLV 7KH QXOO K\SRWKHVLV LV WKDW WKH SURSRUWLRQ RI VXFFHVVHV LQ SRSXODWLRQ HTXDOV WKH SURSRUWLRQ RI VXFFHVVHV LQ SRSXODWLRQ + ! <RX VHOHFW RQH RI WKH IROORZLQJ DOWHUQDWLYH K\SRWKHVHV DJDLQVW ZKLFK WR WHVW WKH QXOO K\SRWKHVLV H 1 1 < 2 H 2 1 > 2 H 3 1 2 Inputs ;1 Using statistics ; Q Q 6DPSOH PHDQ 6DPSOH PHDQ 6DPSOH VL]H 6DPSOH VL]H 6LJQLILFDQFH OHYHO Results 7HVW 33 'LIIHUHQFH EHWZHHQ WKH SURSRUWLRQV RI VXFFHVVHV LQ WKH WZR VDPSOHV 7HVW = 3URE &ULWLFDO = =WHVW VWDWLVWLF 3UREDELOLW\ DVVRFLDWHG ZLWK WKH =WHVW VWDWLVWLF %RXQGDU\ YDOXH RI = DVVRFLDWHG ZLWK WKH OHYHO WKDW \RX VXSSOLHG Page 9-12 Using statistics One-Sample T-Test Menu name: 77HVW 7KH 2QHVDPSOH 7WHVW LV XVHG ZKHQ WKH SRSXODWLRQ VWDQGDUG GHYLDWLRQ LV QRW NQRZQ 2Q WKH EDVLV RI VWDWLVWLFV IURP D VLQJOH VDPSOH PHDVXUHV WKH VWUHQJWK RI WKH HYLGHQFH IRU D VHOHFWHG K\SRWKHVLV DJDLQVW WKH QXOO K\SRWKHVLV 7KH QXOO K\SRWKHVLV LV WKDW WKH VDPSOH PHDQ KDV VRPH DVVXPHG YDOXH + <RX VHOHFW RQH RI WKH IROORZLQJ DOWHUQDWLYH K\SRWKHVHV DJDLQVW ZKLFK WR WHVW WKH QXOO K\SRWKHVLV + + 2 ! + 3 Inputs Q x 6[ 3RSXODWLRQ PHDQ 6DPSOH VL]H 6DPSOH PHDQ 6DPSOH VWDQGDUG GHYLDWLRQ 6LJQLILFDQFH OHYHO 7WHVW VWDWLVWLF 3UREDELOLW\ DVVRFLDWHG ZLWK WKH 7WHVW VWDWLVWLF %RXQGDU\ YDOXH RI 7 DVVRFLDWHG ZLWK WKH OHYHO WKDW \RX VXSSOLHG %RXQGDU\ YDOXH RI x UHTXLUHG E\ WKH YDOXH WKDW \RX VXSSOLHG Using statistics Results 7HVW 7 3URE &ULWLFDO 7 &ULWLFDO x Using statistics Page 9-13 Two-Sample T-Test Menu name: 77HVW 7KH 7ZRVDPSOH 7WHVW LV XVHG ZKHQ WKH SRSXODWLRQ VWDQGDUG GHYLDWLRQ LV QRW NQRZQ 2Q WKH EDVLV RI VWDWLVWLFV IURP WZR VDPSOHV HDFK VDPSOH IURP D GLIIHUHQW SRSXODWLRQ PHDVXUHV WKH VWUHQJWK RI WKH HYLGHQFH IRU D VHOHFWHG K\SRWKHVLV DJDLQVW WKH QXOO K\SRWKHVLV 7KH QXOO K\SRWKHVLV LV WKDW WKH PHDQ RI SRSXODWLRQ HTXDOV WKH PHDQ RI SRSXODWLRQ + 1 2 <RX VHOHFW RQH RI WKH IROORZLQJ DOWHUQDWLYH K\SRWKHVHV DJDLQVW ZKLFK WR WHVW WKH QXOO K\SRWKHVLV + 1 2 + 2 1 ! 2 + 3 1 2 Inputs x1 Using statistics x 6 6 Q Q B3RROHG" 6DPSOH PHDQ 6DPSOH PHDQ 6DPSOH VWDQGDUG GHYLDWLRQ 6DPSOH VWDQGDUG GHYLDWLRQ 6DPSOH VL]H 6DPSOH VL]H 6LJQLILFDQFH OHYHO &KHFN WKLV RSWLRQ WR SRRO VDPSOHV EDVHG RQ WKHLU VWDQGDUG GHYLDWLRQV 7WHVW VWDWLVWLF 3UREDELOLW\ DVVRFLDWHG ZLWK WKH 7WHVW VWDWLVWLF %RXQGDU\ YDOXH RI 7 DVVRFLDWHG ZLWK WKH OHYHO WKDW \RX VXSSOLHG Results 7HVW 7 3URE &ULWLFDO 7 Page 9-14 Using statistics Confidence intervals 7KH FRQILGHQFH LQWHUYDO FDOFXODWLRQV WKDW WKH +3 * FDQ SHUIRUP DUH EDVHG RQ WKH 1RUPDO =GLVWULEXWLRQ RU 6WXGHQWV WGLVWULEXWLRQ One-Sample Z-Interval Menu name: =, 17 7KLV RSWLRQ XVHV WKH 1RUPDO =GLVWULEXWLRQ WR FDOFXODWH D FRQILGHQFH LQWHUYDO IRU WKH WUXH PHDQ RI D SRSXODWLRQ ZKHQ WKH WUXH SRSXODWLRQ VWDQGDUG GHYLDWLRQ LV NQRZQ Inputs x Q & 6DPSOH PHDQ 3RSXODWLRQ VWDQGDUG GHYLDWLRQ 6DPSOH VL]H &RQILGHQFH OHYHO Using statistics &ULWLFDO YDOXH IRU = /RZHU ERXQG IRU 8SSHU ERXQG IRU Results &ULWLFDO = PLQ PD[ Two-Sample Z-Interval Menu name: =, 17 1 2 7KLV RSWLRQ XVHV WKH 1RUPDO =GLVWULEXWLRQ WR FDOFXODWH D FRQILGHQFH LQWHUYDO IRU WKH GLIIHUHQFH LQ WKH PHDQV RI WZR SRSXODWLRQV 1 DQG 2 ZKHQ WKH SRSXODWLRQ VWDQGDUG GHYLDWLRQV DQG DUH NQRZQ ! Inputs x1 x Q Q & Using statistics 6DPSOH PHDQ 6DPSOH PHDQ 3RSXODWLRQ VWDQGDUG GHYLDWLRQ 3RSXODWLRQ VWDQGDUG GHYLDWLRQ 6DPSOH VL]H 6DPSOH VL]H &RQILGHQFH OHYHO Page 9-15 Results &ULWLFDO = 0LQ 0D[ &ULWLFDO YDOXH IRU = /RZHU ERXQG IRU 8SSHU ERXQG IRU ! ! One-Proportion Z-Interval Menu name: =, 17 3 7KLV RSWLRQ XVHV WKH 1RUPDO =GLVWULEXWLRQ WR FDOFXODWH D FRQILGHQFH LQWHUYDO IRU WKH SURSRUWLRQ RI VXFFHVVHV LQ D SRSXODWLRQ IRU WKH FDVH LQ ZKLFK D VDPSOH RI VL]H Q KDV D QXPEHU RI VXFFHVVHV [ Inputs [ Q & Using statistics 6DPSOH VXFFHVV FRXQW 6DPSOH VL]H &RQILGHQFH OHYHO &ULWLFDO YDOXH IRU = /RZHU ERXQG IRU 8SSHU ERXQG IRU Results &ULWLFDO = 0LQ 0D[ Two-Proportion Z-Interval Menu name: =, 17 3 3 7KLV RSWLRQ XVHV WKH 1RUPDO =GLVWULEXWLRQ WR FDOFXODWH D FRQILGHQFH LQWHUYDO IRU WKH GLIIHUHQFH LQ WKH SURSRUWLRQV RI VXFFHVVHV LQ WZR SRSXODWLRQV Inputs [1 [ Q Q & 6DPSOH VXFFHVV FRXQW 6DPSOH VXFFHVV FRXQW 6DPSOH VL]H 6DPSOH VL]H &RQILGHQFH OHYHO Page 9-16 Using statistics Results &ULWLFDO = 0LQ 0D[ &ULWLFDO YDOXH IRU = /RZHU ERXQG IRU WKH GLIIHUHQFH LQ SURSRUWLRQV RI VXFFHVVHV 8SSHU ERXQG IRU WKH GLIIHUHQFH LQ SURSRUWLRQV RI VXFFHVVHV One-Sample T-Interval Menu name: 7, 17 7KLV RSWLRQ XVHV WKH 6WXGHQWV WGLVWULEXWLRQ WR FDOFXODWH D FRQILGHQFH LQWHUYDO IRU WKH WUXH PHDQ RI D SRSXODWLRQ IRU WKH FDVH LQ ZKLFK WKH WUXH SRSXODWLRQ VWDQGDUG GHYLDWLRQ LV XQNQRZQ Inputs x 6[ Q & 6DPSOH PHDQ 6DPSOH VWDQGDUG GHYLDWLRQ 6DPSOH VL]H &RQILGHQFH OHYHO &ULWLFDO YDOXH IRU 7 /RZHU ERXQG IRU 8SSHU ERXQG IRU Using statistics Results &ULWLFDO 7 0LQ 0D[ Using statistics Page 9-17 Two-Sample T-Interval Menu name: 7, 17 7KLV RSWLRQ XVHV WKH 6WXGHQWV WGLVWULEXWLRQ WR FDOFXODWH D FRQILGHQFH LQWHUYDO IRU WKH GLIIHUHQFH LQ WKH PHDQV RI WZR SRSXODWLRQV 1 - 2, ZKHQ WKH SRSXODWLRQ VWDQGDUG GHYLDWLRQV 1DQG 2 DUH XQNQRZQ Inputs x1 x V V Q Q & Using statistics B3RROHG 6DPSOH PHDQ 6DPSOH PHDQ 6DPSOH VWDQGDUG GHYLDWLRQ 6DPSOH VWDQGDUG GHYLDWLRQ 6DPSOH VL]H 6DPSOH VL]H &RQILGHQFH OHYHO :KHWKHU RU QRW WR SRRO WKH VDPSOHV EDVHG RQ WKHLU VWDQGDUG GHYLDWLRQV &ULWLFDO YDOXH IRU 7 /RZHU ERXQG IRU ! Results &ULWLFDO 7 0LQ 0D[ 8SSHU ERXQG IRU ! Page 9-18 Using statistics Chapter 10 Introduction to programming Contents *HWWLQJ VWDUWHG &UHDWLQJ VDYLQJ DQG UXQQLQJ D SURJUDP 7KH SURJUDPPLQJ PHQX $OJHEUDLF DQG 531 PRGHV 8VLQJ IXQFWLRQV WKDW UHTXLUH DUJXPHQWV +DQGOLQJ GDWD , QSXW GDWD 2XWSXW GDWD +RZ D SURJUDP IORZV 1HVWHG SURFHGXUHV :RUNLQJ ZLWK YDULDEOHV 8VLQJ ORFDO YDULDEOHV 6HWWLQJ YDULDEOHV 6HWWLQJ D ORFDO YDULDEOH WR WKH UHVXOW RI D FDOFXODWLRQ 8VLQJ JOREDO YDULDEOHV ([DPSOH /RRSLQJ DQG EUDQFKLQJ &RPSDULVRQ IXQFWLRQV &RQGLWLRQDO DQG ORRSLQJ VWUXFWXUHV ([DPSOH 7UDSSLQJ HUURUV ([DPSOH Introduction to programming Introduction to programming Page 10-1 Introduction 7KLV FKDSWHU GHVFULEHV KRZ WR FUHDWH DQG UXQ SURJUDPV RQ WKH +3 * 7KH +3 * KDV D ULFK SURJUDPPLQJ HQYLURQPHQW 3URJUDPV FDQ UDQJH LQ FRPSOH[LW\ IURP D VLPSOH WDVN VXFK DV SHUIRUPLQJ D VHTXHQFH RI DULWKPHWLF RSHUDWLRQV WR D FRPSOH[ SURFHVV WKDW UHTXHVWV LQSXW SHUIRUPV H[WHQVLYH SURFHVVLQJ DQG RXWSXWV UHVXOWV LQ D JUDSKLFDO IRUPDW 7KLV FKDSWHU IRFXVHV RQ FUHDWLQJ DQG UXQQLQJ SURJUDPV LQ DOJHEUDLF PRGH RQO\ 6HH WKH $GYDQFHG 8VHUV *XLGH IRU LQIRUPDWLRQ RQ FUHDWLQJ DQG XVLQJ SURJUDPV LQ 531 PRGH 6HH WKH 3RFNHW *XLGH IRU GHWDLOV RI WKH SURJUDPPLQJ FRPPDQGV WKDW DUH DYDLODEOH Getting started 7KLV VHFWLRQ FRQWDLQV DQ H[DPSOH RI KRZ WR FUHDWH D VLPSOH SURJUDP WR FDOFXODWH WKH K\SRWHQXVH RI D ULJKWDQJOH WULDQJOH XVLQJ 3\WKDJRUDV WKHRUHP :KHQ \RX VWDUW WKH SURJUDP \RX VXSSO\ WKH NQRZQ VLGH OHQJWKV DV DUJXPHQWV 7KLV SURJUDP LV DQ H[DPSOH RI D VLPSOH DOJHEUDLF FDOFXODWLRQ XVLQJ WKH DUJXPHQWV WKDW \RX VSHFLI\ :LWKLQ WKH SURJUDP WKH FDOFXODWLRQ LV HQFORVHG LQ VLQJOH TXRWHV > WR GHOLPLW LW DV DQ DOJHEUDLF REMHFW , I \RX QHHG WR GR H[WHQVLYH SURFHVVLQJ LQYROYLQJ ORRSLQJ DQG EUDQFKLQJ \RX XVH D QHVWHG SURFHGXUH > WR GHOLPLW WKH SURFHGXUH IURP WKH DUJXPHQWV 7KH SURJUDP GRHV WKH IROORZLQJ , W FROOHFWV WKH NQRZQ VLGH OHQJWKV DV DUJXPHQWV DQG VWRUHV WKHP DV ORFDO YDULDEOHV WKDW LV YDULDEOHV WKDW H[LVW RQO\ ZKLOH WKH SURJUDP LV UXQQLQJ Introduction to programming , W XVHV WKH YDULDEOHV WR FDOFXODWH WKH OHQJWK RI WKH K\SRWHQXVH DQG UHWXUQV WKH UHVXOW WR WKH KLVWRU\ &UHDWH WKH SURJUDP DV IROORZV 3XW WKH SURJUDP GHOLPLWHUV RQ WKH FRPPDQG OLQH > 'HILQH WKH WZR ORFDO YDULDEOHV WR DFFHSW WKH DUJXPHQWV IRU WKH VLGH OHQJWK AB >)`$F`%F Page 10-2 Introduction to programming 'HILQH WKH HTXDWLRQ WR FDOFXODWH WKH K\SRWHQXVH 1RWH WKDW \RX QHHG WR XVH WR HQFORVH WKH HTXDWLRQ DQG VHSDUDWH LW IURP WKH GHILQLWLRQ RI WKH DUJXPHQWV >r<_`$q =`%q AB' (A^2+B^2)' 0RYH WKH FXUVRU RXW RI WKH SURJUDP DQG VSHFLI\ WKDW \RX ZDQW WR VWRUH WKH SURJUDP DV 3<7+ >k``3<7+ A B ' (A^2+B^2)' PYTH 3UHVV \ WR VWRUH WKH SURJUDP \ :KHQ \RX UXQ WKH SURJUDP \RX VSHFLI\ WKH OHQJWKV RI WKH VLGHV DV DUJXPHQWV WR WKH SURJUDP )RU H[DPSOH WR UXQ WKH SURJUDP WR FDOFXODWH WKH K\SRWHQXVH RI D ULJKW DQJOH WULDQJOH ZLWK VLGHV RI DQG XQLWV 'LVSOD\ D OLVW RI WKH YDULDEOHV LQ WKH GLUHFWRU\ j 3UHVV WKH IXQFWLRQ NH\ WKDW FRUUHVSRQGV WR \RXU SURJUDP 7KH SURJUDP QDPH LV LQVHUWHG RQ WKH FRPPDQG OLQH 3UHVV <_ WR LQVHUW SDUHQWKHVHV DIWHU WKH SURJUDP QDPH (QWHU \RXU DUJXPHQWV VHSDUDWHG E\ D >I EHWZHHQ WKH SDUHQWKHVHV >I 3UHVV \ WR FDOFXODWH WKH K\SRWHQXVH \ 7KH UHVXOW LV UHWXUQHG WR KLVWRU\ Creating, saving, and running a program $ SURJUDP LV DQ REMHFW WKDW \RX FDQ VWRUH LQ D YDULDEOH 7KDW LV \RX FUHDWH D SURJUDP DVVLJQ LW D QDPH DQG VDYH LW LQ D GLUHFWRU\ 7R FUHDWH D SURJUDP SUHVV > 7KH SURJUDP GHOLPLWHUV DSSHDU RQ WKH FRPPDQG OLQH UHDG\ IRU \RX WR HQWHU FRGH DQG WKH 35* DQQXQFLDWRU DSSHDUV DW WKH WRS RI WKH VFUHHQ WR LQGLFDWH WKDW \RX DUH LQ SURJUDP PRGH 8VH WKH NH\ERDUG IXQFWLRQV DQG NH\V DQG VHOHFW FRPPDQGV IURP WKH SURJUDPPLQJ PHQX WR FUHDWH \RXU SURJUDP $V \RX VHOHFW IXQFWLRQ NH\V DQG RSHUDWRU NH\V WKH IXQFWLRQV DQG RSHUDWLRQV DSSHDU LQ \RXU SURJUDP Introduction to programming Introduction to programming Page 10-3 8VH WR VHSDUDWH IXQFWLRQV DQG FDOFXODWLRQV ZLWKLQ D QHVWHG SURFHGXUH 7R HQWHU SUHVV DQG KROG GRZQ > DQG SUHVV )RU UHDGDELOLW\ \RX FDQ XVH >J WR DGG OLQH EUHDNV )RU GHWDLOV RQ HGLWLQJ D SURJUDPIRU H[DPSOH FXWWLQJ FRS\LQJ DQG SDVWLQJ FRGHVHH 6HH (GLWLQJ WKH FRPPDQG OLQH RQ SDJH 7R VDYH \RXU SURJUDP D 3UHVV > WR PRYH WKH FXUVRU SDVW WKH HQG RI WKH SURJUDP E 3UHVV k WR LQVHUW WKH f V\PERO DIWHU WKH SURJUDP F (QWHU D QDPH IRU WKH SURJUDP DQG SUHVV \ 7R UXQ D SURJUDP D $FFHVV WKH GLUHFWRU\ ZKHUH WKH SURJUDP UHVLGHV DQG HLWKHU HQWHU WKH SURJUDP QDPH RQ WKH FRPPDQG OLQH RU SUHVV j DQG VHOHFW LW IURP WKH IXQFWLRQNH\ PHQX 7KH SURJUDP QDPH VKRXOG QRZ EH RQ WKH FRPPDQG OLQH E 3UHVV <_ WR LQVHUW SDUHQWKHVHV DIWHU WKH SURJUDP QDPH F (QWHU WKH DUJXPHQW RU DUJXPHQWV VHSDUDWHG E\ D >I DQG SUHVV \ The programming menu 7KH SURJUDPPLQJ PHQX FRQWDLQV WKH FRPPDQGV \RX FDQ XVH LQ D SURJUDP 6HOHFW D FDWHJRU\ WR GLVSOD\ WKH DYDLODEOH FRPPDQGV LQ WKDW FDWHJRU\ )URP WKH PHQX \RX VHOHFW FRPPDQGV WR LQFOXGH LQ \RXU SURJUDP 7KH SURJUDPPLQJ PHQX LV D W\SLQJ DLG RQO\ <RX QHHG WR NQRZ WKH V\QWD[ RI WKH FRPPDQGV DQG KRZ WR XVH WKHP LQ \RXU SURJUDP 6HH WKH SRFNHW JXLGH IRU GHWDLOV RI SURJUDPPLQJ FRPPDQGV DQG WKHLU V\QWD[ Introduction to programming ([DPLQLQJ WKH SURJUDPPLQJ PHQX LV D JRRG ZD\ WR JHW DQ LGHD RI WKH W\SHV RI SURJUDPPLQJ RSHUDWLRQV WKDW DUH DYDLODEOH RQ WKH +3 * 7R GLVSOD\ WKH SURJUDPPLQJ PHQX SUHVV <N Page 10-4 Introduction to programming Algebraic and RPN modes , Q 531 PRGH WKH +3 * PDNHV H[WHQVLYH XVH RI WKH VWDFN :KHQ GHYHORSLQJ SURJUDPV LQ 531 PRGH \RX XVH WKH VWDFN WR SURYLGH WKH GDWD WKDW \RXU SURJUDP XVHV FRQVWUXFW WKH FRPPDQGV WKDW \RXU SURJUDP XVHV KROG WKH RXWSXW WKDW \RXU SURJUDP JHQHUDWHV , Q DOJHEUDLF PRGH WKH VWDFN LV QRW DYDLODEOH <RX XVH RWKHU PHWKRGV WR EXLOG \RXU SURJUDP DQG WR SDVV GDWD WR LW Using functions that require arguments :KHQ XVLQJ D IXQFWLRQ WKDW UHTXLUHV DUJXPHQWV , Q 531 PRGH \RX SODFH WKH DUJXPHQWV RQ WKH VWDFN EHIRUH FDOOLQJ WKH IXQFWLRQ , Q DOJHEUDLF PRGH \RX VXSSO\ WKH DUJXPHQWV HQFORVHG LQ SDUHQWKHVHV DIWHU WKH IXQFWLRQ FDOO )RU H[DPSOH \RX FDQ XVH WKH , 1387 FRPPDQG WR SURPSW IRU GDWD 7KH IROORZLQJ FRGH VHJPHQWV GHPRQVWUDWH KRZ WR XVH WKH , 1387 FRPPDQG WR FROOHFW GDWD LQ ERWK 531 DQG DOJHEUDLF PRGHV , Q 531 PRGH WKH IROORZLQJ FRGH VHJPHQW SURPSWV IRU LQSXW FROOHFWV WKH GDWD DV D VWULQJ DQG FRQYHUWV LW WR D QXPEHU $W WKH HQG RI WKH SURFHVV WKH GDWD LV RQ OHYHO RI WKH VWDFN "ENTER A NUMBER" "" INPUT OBJ , Q $OJHEUDLF PRGH WKH IROORZLQJ FRGH VHJPHQW SHUIRUPV WKH VDPH RSHUDWLRQ $W WKH HQG RI WKLV SURFHVV WKH GDWD LV VWRUHG LQ D JOREDO YDULDEOH 180 UHDG\ IRU XVH LQ WKH SURJUDP 1RWH WKDW VLQFH \RX DUH XVLQJ D JOREDO UDWKHU WKDQ D ORFDO YDULDEOH \RX FDQ IROORZ WKH YDULDEOH GHFODUDWLRQ ZLWK D IXQFWLRQ INPUT ("ENTER A NUMBER", "") OBJ(NUM1) NUM1 NUM1; Introduction to programming Introduction to programming Page 10-5 Handling data 7KLV VHFWLRQ EULHIO\ GHVFULEHV KRZ \RX FDQ VXSSO\ GDWD WR \RXU SURJUDPV DQG KRZ \RX FDQ RXWSXW GDWD WKDW \RXU SURJUDPV SURGXFH Input data <RX FDQ XVH RQH RI WKH IROORZLQJ PHWKRGV WR VSHFLI\ WKH GDWD WKDW \RX ZDQW \RXU SURJUDP WR XVH DV DUJXPHQWV ZKHQ \RX UXQ WKH SURJUDP DV YDULDEOHV WKDW \RX FUHDWH LQ PHPRU\ EHIRUH \RX UXQ WKH SURJUDP E\ SURPSWLQJ IRU LQSXW DV WKH SURJUDP UXQV 6HH 8VLQJ IXQFWLRQV WKDW UHTXLUH DUJXPHQWV RQ SDJH IRU DQ H[DPSOH RI XVLQJ WKH , 1387 IXQFWLRQ WR SURPSW IRU GDWD :KHQ \RX XVH D IXQFWLRQ VXFK DV , 1387 WR FROOHFW QXPHULF GDWD ZKLOH WKH SURJUDP UXQV WKH GDWD LV UHWXUQHG DV D VWULQJ <RX QHHG WR FRQYHUW LW WR D QXPEHU XVLQJ D IXQFWLRQ VXFK DV 2%- Output data 'DWD WKDW LV RXWSXW LQ DOJHEUDLF PRGH LV ZULWWHQ WR WKH KLVWRU\ 1RWH WKH IROORZLQJ SRLQWV UHJDUGLQJ RXWSXW :KHQ WKH SURJUDP FRPSOHWHV WKH KLVWRU\ GLVSOD\V WKH ODVW RXWSXW RQO\ 7KLV LV GLVSOD\HG DW OHYHO 7R UHWDLQ RXWSXWV FUHDWHG GXULQJ SURFHVVLQJ \RX FDQ ZULWH WKH RXWSXW WR D JOREDO YDULDEOH RU YDULDEOHV DV WKH SURJUDP SURJUHVVHV 7KLV PHWKRG JLYHV \RX WKH IOH[LELOLW\ WR IRUPDW WKH RXWSXW DQG WR DGG FRPPHQWV WR LPSURYH FODULW\ Introduction to programming 6RPH IXQFWLRQV UHWXUQ PXOWLSOH YDOXHV )RU WKHVH IXQFWLRQV YDOXHV DUH ZULWWHQ WR D OLVW 8QOHVV \RX RXWSXW WR D YDULDEOH WKH OLVW DSSHDUV RQ WKH KLVWRU\ How a program flows +3 * SURJUDPV KDYH RQH HQWUDQFH SRLQWDW WKH EHJLQQLQJ RI WKH SURJUDPDQG RQH H[LW SRLQWDW WKH HQG RI WKH SURJUDP 7KHUH LV QR FRPPDQG VXFK DV *272 WKDW \RX FDQ XVH WR MXPS WR D SRLQW ZLWKLQ D SURJUDP :LWKLQ D SURJUDP \RX XVH ORRSLQJ DQG EUDQFKLQJ VWUXFWXUHV VXFK DV IF THEN WR FRQWURO WKH RUGHU RI RSHUDWLRQV 6HH &RQGLWLRQDO DQG ORRSLQJ VWUXFWXUHV RQ SDJH IRU GHWDLOV Page 10-6 Introduction to programming <RX FDQ UXQ RWKHU SURJUDPV IURP ZLWKLQ \RXU SURJUDPV , Q WKLV PDQQHU \RX FDQ FUHDWH PRGXODU SURJUDPV )RU H[DPSOH \RX FRXOG FUHDWH WKUHH GLVFUHWH FRPSRQHQW SURJUDPV QDPHG , 1387 352&(66, 1* DQG 287387 <RX FRXOG WKHQ FUHDWH D PDVWHU SURJUDP WKDW UXQV HDFK RI WKHVH FRPSRQHQWV LQ WXUQ DV IROORZV INPUT PROCESSING OUTPUT Nested procedures , I \RX XVH ORFDO YDULDEOHV WR FROOHFW LQSXW DUJXPHQWV \RX QHHG WR XVH QHVWHG SURFHGXUHV LI \RX ZDQW WR SHUIRUP EUDQFKLQJ DQG ORRSLQJ <RX FDQQRW SHUIRUP EUDQFKLQJ DQG ORRSLQJ IURP ZLWKLQ DQ DOJHEUDLF REMHFW 7R LQVHUW D QHZ QHVWHG SURFHGXUH LQ \RXU FRGH SUHVV > WR LQVHUW WKH GHOLPLWHUV (QWHU WKH SURFHGXUH FRGH EHWZHHQ WKH GHOLPLWHUV )RU H[DPSOH LQ WKH IROORZLQJ SURJUDPPLQJ VHJPHQW WKH LQSXW DUJXPHQWV DUH DVVLJQHG WR YDULDEOHV $ DQG % 7KH DOJHEUDLF REMHFW D FDOFXODWLRQ WKDW DGGV WKH YDULDEOHV QHHGV WR EH HQFORVHG LQ VLQJOH TXRWHV DV LW LPPHGLDWHO\ IROORZV WKH ORFDO YDULDEOH GHILQLWLRQ 7KLV H[DPSOH UHWXUQV WKH VXP RI $ DQG % WR WKH KLVWRU\ A B 'A+B' , Q WKH IROORZLQJ SURJUDPPLQJ VHJPHQW \RX XVH D QHVWHG SURFHGXUH DV WKH SURFHVVLQJ LQYROYHV PRUH WKDQ D VLPSOH FDOFXODWLRQ 7KLV H[DPSOH FRPSDUHV $ DQG % DQG FDUULHV RXW FDOFXODWLRQV EDVHG RQ WKH FRPSDULVRQ 7KH UHVXOWV RI WKH FDOFXODWLRQV DUH VWRUHG LQ JOREDO YDULDEOHV & DQG ' AB IF A>B Introduction to programming THEN A-B ELSE B-A END 1RWH WKDW ZLWKLQ D QHVWHG SURFHGXUH \RX QHHG WR XVH WR VHSDUDWH FDOFXODWLRQV 7R LQVHUW D FKDUDFWHU SUHVV DQG KROG > DQG SUHVV F C; A^2-B^2 C D Introduction to programming Page 10-7 Working with variables <RX XVH YDULDEOHV WR KROG GDWD ZLWKLQ \RXU SURJUDPV 7KHUH DUH WZR W\SHV RI YDULDEOHV ZLWKLQ WKH +3 * SURJUDPPLQJ HQYLURQPHQW <RX FUHDWH ORFDO YDULDEOHV ZLWKLQ \RXU SURJUDP )RU H[DPSOH ORFDO YDULDEOHV KROG WKH YDOXHV VHW E\ WKH DUJXPHQWV \RX XVH ZKHQ \RX FDOO WKH SURJUDP $ SURJUDP FDQ RQO\ DFFHVV D ORFDO YDULDEOH LQVLGH WKH QHVWHG SURFHGXUH ZKHUH LW ZDV FUHDWHG DQG DQ\ QHVWHG SURFHGXUHV WKDW LW FRQWDLQV <RX FDQ FUHDWH JOREDO YDULDEOHV LQ D SURJUDP RU \RX FDQ XVH H[LVWLQJ JOREDO YDULDEOHV 6HH FKDSWHU 6WRULQJ REMHFWV IRU GHWDLOV RQ KRZ WR FUHDWH JOREDO YDULDEOHV 1RWH WKH IROORZLQJ SRLQWV *OREDO YDULDEOHV DUH DYDLODEOH DQ\ZKHUH ZLWKLQ D SURJUDP 7R UHPRYH D JOREDO YDULDEOH XVLQJ FRGH XVH WKH 385*( FRPPDQG , I \RX XVH JOREDO YDULDEOHV LQ \RXU SURJUDP WKH\ PXVW EH ORFDWHG LQ WKH VDPH GLUHFWRU\ RU KLJKHU DV WKH SURJUDP Using local variables 7KHUH DUH VRPH FRQVWUDLQWV ZLWK ORFDO YDULDEOHV WKDW \RX QHHG WR EH DZDUH RI 7KHVH DUH DV IROORZV , PPHGLDWHO\ DIWHU D ORFDO YDULDEOH GHFODUDWLRQ WKH SURJUDP FRGH PXVW FRQWDLQ HLWKHU DQ DOJHEUDLF FDOFXODWLRQ HQFORVHG LQ VLQJOH TXRWHV D QHVWHG SURFHGXUH HQFORVHG E\ Introduction to programming $ ORFDO YDULDEOH LV DYDLODEOH LQ WKH QHVWHG SURFHGXUH ZKHUH LW ZDV FUHDWHG DQG DOO QHVWHG SURFHGXUHV WKDW LW FRQWDLQV <RX FDQ FUHDWH D ORFDO YDULDEOH ZLWK WKH VDPH QDPH DV DQ H[LVWLQJ JOREDO YDULDEOH WKDW LV D YDULDEOH LQ WKH VDPH GLUHFWRU\ RU KLJKHU DV WKH SURJUDP &RPPDQGV WKDW XVH WKH YDULDEOH QDPH ZLOO XVH WKH ORFDO YDULDEOH YDOXH UDWKHU WKDQ WKH JOREDO YDULDEOH YDOXH Setting variables <RX JHQHUDOO\ VHW YDULDEOHV WR LQSXWV RU WR WKH UHVXOWV RI SURFHVVHV DQG FDOFXODWLRQV WKDW \RXU SURJUDP SHUIRUPV <RX FDQ XVH ORFDO YDULDEOHV WR VWRUH LQWHUPHGLDWH UHVXOWV WKDW \RX ZDQW WR UHXVH LQ VXEVHTXHQW QHVWHG SURFHGXUHV ZLWKLQ \RXU SURJUDP 8VH JOREDO YDULDEOHV WR VWRUH GDWD IRU ZLGHU DFFHVV Page 10-8 Introduction to programming Setting local variables to hold input arguments 2Q WKH FRPPDQG OLQH SRVLWLRQ WKH FXUVRU LPPHGLDWHO\ WR WKH ULJKW RI WKH RSHQLQJ V\PERO 3UHVV >L WR LQVHUW WKH V\PERO (QWHU D ORFDO YDULDEOH QDPH IRU HDFK LQSXW DUJXPHQW \RXU SURJUDP XVHV VHSDUDWLQJ HDFK ZLWK D F )RU H[DPSOH LI \RXU SURJUDP XVHV WZR DUJXPHQWV DQG \RX ZDQW WR VHW WKH YDOXH RI WKHVH DUJXPHQWV WR ORFDO YDULDEOHV $ DQG % WKH EHJLQQLQJ RI \RXU SURJUDP ZRXOG DSSHDU DV IROORZV >>L`$F`% AB Setting a local variable to a value $IWHU WKH YDOXH SUHVV >L WR LQVHUW WKH V\PERO DQG HQWHU WKH ORFDO YDULDEOH QDPH )RU H[DPSOH WR VHW ORFDO YDULDEOH * WR KROG WKH DFFHOHUDWLRQ RI JUDYLW\ \RX FUHDWH WKH YDULDEOH DV IROORZV > >L`* 9. 81 G 7KH IROORZLQJ H[DPSOH DFFHSWV DQ LQSXW DUJXPHQW FUHDWHV WKH ORFDO YDULDEOH * PXOWLSOLHV LW E\ WKH DUJXPHQW DQG SODFHV WKH UHVXOW RQ WKH KLVWRU\ A 9. 81 G A*G , Q WKH IROORZLQJ H[DPSOH WKH A*G FDOFXODWLRQ GRHV QRW UHFRJQL]H WKH ORFDO YDULDEOH * DV DV LW LV RXWVLGH WKH QHVWHG SURFHGXUH ZKHUH WKH YDULDEOH ZDV GHFODUHG 7KH A+G FDOFXODWLRQ UHFRJQL]HV * DV A 9. 81 G 'A+G' A*G Introduction to programming Page 10-9 Introduction to programming Setting a local variable to the result of a calculation 7KH IROORZLQJ SURJUDP VHJPHQW GHPRQVWUDWHV KRZ WR VHW D ORFDO YDULDEOH WR WKH UHVXOW RI D FDOFXODWLRQ DQG WR XVH WKH UHVXOW LQ D VXEVHTXHQW FDOFXODWLRQ 7KH SURJUDP DFFHSWV WZR LQSXW DUJXPHQWV DQG XVHV WKHVH LQ WKH FDOFXODWLRQV 2Q WKH FRPPDQG OLQH LQVHUW WKH SURJUDP GHOLPLWHUV DQG VSHFLI\ WKH ORFDO YDULDEOHV WR KROG WKH LQSXW DUJXPHQWV >>L`$F`%F AB 6WDUW D QHZ QHVWHG SURFHGXUH DQG GHILQH WKH LQLWLDO FDOFXODWLRQ >`$=`% AB A+B 6WRUH WKH UHVXOWV RI WKH FDOFXODWLRQ WR ORFDO YDULDEOH & >L`& AB A+B C Introduction to programming 2SHQ D QHZ QHVWHG SURFHGXUH DQG HQWHU D FDOFXODWLRQ WKDW XVHV WKH UHVXOW RI WKH LQLWLDO FDOFXODWLRQ >`&=r<_`$-`% >L`& AB A+B C C+ (A-B) Page 10-10 Introduction to programming Using global variables <RX FDQ XVH H[LVWLQJ JOREDO YDULDEOHV LQ \RXU SURJUDPV *OREDO YDULDEOHV DUH GLIIHUHQW WR ORFDO YDULDEOHV LQ WKH IROORZLQJ ZD\V *OREDO YDULDEOHV DUH DYDLODEOH WR WKH HQWLUH SURJUDP LQGHSHQGHQW RI QHVWHG SURFHGXUHV 8QOLNH ORFDO YDULDEOHV \RX FDQ FUHDWH PRUH WKDQ RQH JOREDO YDULDEOH LQ D QHVWHG SURFHGXUH :LWKLQ D SURJUDP \RX XVH WKH k NH\ WR GHILQH D JOREDO YDULDEOH 7KH k NH\ SURGXFHV D V\PERO RQ WKH FRPPDQG OLQH Example 7KH IROORZLQJ SURJUDP GHPRQVWUDWHV WKH XVH RI D JOREDO YDULDEOH WR KROG WKH GDWD D SURJUDP XVHV DQG WR KROG WKH RXWSXW LW SURGXFHV , W SHUIRUPV WKH IROORZLQJ WDVNV , W DFFHSWV DQ LQSXW DUJXPHQW DQG FDOFXODWHV LWV SHUFHQWDJH RI D YDOXH LQ WKH JOREDO YDULDEOH 727/ <RX FUHDWH 727/ EHIRUH \RX UXQ WKH SURJUDP , W VWRUHV WKH UHVXOW LQWR DQRWKHU JOREDO YDULDEOH 5(6/7 , W FRQYHUWV WKH QXPHULF UHVXOW WR D VWULQJ DQG DGGV IRU UHDGDELOLW\ 7R FUHDWH WKH SURJUDP SHUIRUP WKH IROORZLQJ , QVHUW WKH SURJUDP GHOLPLWHUV RQWR WKH FRPPDQG OLQH DQG GHILQH WKH LQSXW YDULDEOH >>L`$ A &UHDWH D QHZ QHVWHG SURFHGXUH > A Introduction to programming Introduction to programming Page 10-11 (QWHU WKH SHUFHQWDJH FDOFXODWLRQ <_`$z``727/`} A (A/TOTL)*100 6WRUH WKH UHVXOWV LQWR WKH JOREDO YDULDEOH 5(6/7 1RWH WKDW DIWHU WKH FDOFXODWLRQ \RX QHHG WR LQVHUW D WR GHOLPLW WKH DOJHEUDLF FRPPDQGV KROG GRZQ > DQG SUHVV F k``5(6/7`>F A (A/TOTL)*100 $GG DQG VDYH WKH UHVXOWLQJ VWULQJ EDFN LQWR 5(6/7 1RWH WKH IROORZLQJ 7R LQVHUW WKH V\PERO XVH WKH &KDUDFWHUV WRRO > RU SUHVV `< :KHQ \RX DGG D VWULQJ WR D QXPEHU WKH UHVXOWLQJ YDOXH LV D VWULQJ <RX GR QRW QHHG WR FRQYHUW WKH QXPEHU ``5(6/7`=KF> \}k`` 5(6/7 A Introduction to programming (A/TOTL)*100 RESLT1+" %" %HIRUH \RX UXQ WKLV SURJUDP FUHDWH D JOREDO YDULDEOH QDPHG 727/ DQG DVVLJQ D QXPEHU WR LW RESLT1 ; RESLT1 RESLT1; Page 10-12 Introduction to programming Looping and branching 7KLV VHFWLRQ LQWURGXFHV WKH XVH RI FRQGLWLRQDO EUDQFKLQJ DQG ORRSLQJ ZLWKLQ D SURJUDP &RQGLWLRQDO VWUXFWXUHV HYDOXDWH DV IDOVH DQG DQ\ RWKHU YDOXH DV WUXH Comparison functions 7KH +3 * SURYLGHV FRPSDULVRQ IXQFWLRQV WKDW \RX FDQ XVH LQ FRQMXQFWLRQ ZLWK WKH FRQGLWLRQDO DQG ORRSLQJ VWUXFWXUHV <RX DFFHVV WKHP IURP WKH 3URJUDPPLQJ 7HVW PHQX )RU H[DPSOH WR WHVW $ LQ UHODWLRQ WR % XVH WKH IROORZLQJ A==B AB A<B A>B AB AB SAME(A, B) 5HWXUQV WUXH LI $ HTXDOV % 5HWXUQV WUXH LI $ GRHV QRW HTXDO % 5HWXUQV WUXH LI $ LV OHVV WKDQ % 5HWXUQV WUXH LI $ LV JUHDWHU WKDQ % 5HWXUQV WUXH LI $ LV OHVV WKDQ RU HTXDO WR % 5HWXUQV WUXH LI $ LV JUHDWHU WKDQ RU HTXDO WR % 5HWXUQV WUXH LI $ LV H[DFWO\ WKH VDPH REMHFW DV % Conditional and looping structures 7KH IROORZLQJ FRQGLWLRQDO DQG ORRSLQJ FRPPDQGV DUH DYDLODEOH , ) FRPSDULVRQ 7+(1 FRGH (1' , I FRPSDULVRQ HYDOXDWHV WR WUXH WKDW LV D QRQ]HUR YDOXH UXQV FRGH , ) FRPSDULVRQ 7+(1 FRGH (/6( FRGH (1' , I FRPSDULVRQ HYDOXDWHV WR WUXH UXQV FRGH , I FRPSDULVRQ HYDOXDWHV WR IDOVH FRGH LV UXQ &$6( H[SUHVVLRQ 7+(1 FRGH (1' H[SUHVVLRQ 7+(1 FRGH (1' H[SUHVVLRQQ 7+(1 FRGHQ (1' (1' 5XQV WKH FRGH WKDW FRUUHVSRQGV WR WKH ILUVW H[SUHVVLRQ LQ WKH VWUXFWXUH WKDW HYDOXDWHV WR WUXH Introduction to programming Introduction to programming Page 10-13 67$57 VWDUW HQG FRGH 1(;7 5XQV FRGH LQFUHPHQWV VWDUW 5HSHDWV XQWLO VWDUW !HQG 7KH FRGH LV DOZD\V UXQ DW OHDVW RQFH 67$57 VWDUW HQG FRGH 67(3 LQFU 5XQV FRGH LQFUHPHQWV VWDUW E\ WKH QXPEHU VSHFLILHG E\ LQFU LQFU FDQ EH DQ H[SUHVVLRQ 5HSHDWV XQWLO VWDUW ! [. . . ]

DISCLAIMER TO DOWNLOAD THE USER GUIDE HP 49G GRAPHING CALCULATOR

Lastmanuals offers a socially driven service of sharing, storing and searching manuals related to use of hardware and software : user guide, owner's manual, quick start guide, technical datasheets...
In any way can't Lastmanuals be held responsible if the document you are looking for is not available, incomplete, in a different language than yours, or if the model or language do not match the description. Lastmanuals, for instance, does not offer a translation service.

Click on "Download the user manual" at the end of this Contract if you accept its terms, the downloading of the manual HP 49G GRAPHING CALCULATOR will begin.

Search for a user manual

 

Copyright © 2015 - LastManuals - All Rights Reserved.
Designated trademarks and brands are the property of their respective owners.

flag