849
838
<entry><para>倍數餘額折舊</para> </entry>
850
839
<entry><para><guibutton>Ddb</guibutton></para></entry>
851
840
<entry><para>使用倍數餘額法計算資產在指定時間週期內的折舊額。</para>
852
<para>這個函數會使用下列的記憶體註冊:</para>
856
<listitem><para><replaceable>成本</replaceable>,購買資產的金額</para></listitem>
860
<listitem><para><replaceable>剩餘價值</replaceable>,資產在到達使用年限後的價值</para></listitem>
864
<listitem><para><replaceable>年限</replaceable>,資產的使用年限</para></listitem>
868
<listitem><para><replaceable>週期</replaceable>,提列折舊的時間週期</para></listitem>
872
<entry><para>您已經購買了 $8000 的事務機器。機器的使用年限為 6 年。6 年後的剩餘價值為 $900。 如果要計算第 4 年的折舊額,請使用倍數餘額法將下列的值放入前四個記憶體註冊:</para>
842
<entry><para>You have just purchased an office machine for $8000. The useful life of this machine is six years. The salvage value after six years is $900.
843
To calculate the depreciation expense for the fourth year, using the double-declining balance method, click <guibutton>Ddb</guibutton> and put the following values into the text entries:</para>
876
847
<listitem><para>8000</para></listitem>
880
851
<listitem><para>900</para></listitem>
884
855
<listitem><para>6</para></listitem>
888
859
<listitem><para>4</para></listitem>
891
<para>Click <guibutton>Ddb</guibutton><guibutton> =</guibutton></para></entry>
862
<para>Click <guibutton>Calculate</guibutton></para></entry>
892
863
<entry><para>790.12</para>
893
864
<para>第 4 年的折舊額為 $790.12。</para></entry>
895
866
<row valign="top">
896
867
<entry><para>期約值</para> </entry>
897
868
<entry><para><guibutton>Fv</guibutton></para></entry>
898
<entry><para>依據定期固定金額付款計算投資的期約值,每期付款金額 <replaceable>pmt</replaceable> 在付款期間內支付的利率為 <replaceable>int</replaceable> 定期利率。</para>
899
<para>這個函數會使用下列的記憶體註冊:</para>
903
<listitem><para><replaceable>pmt</replaceable>,分期付款</para></listitem>
907
<listitem><para><replaceable>int</replaceable>,定期利率</para></listitem>
911
<listitem><para><replaceable>n</replaceable>,週期數</para></listitem>
869
<entry><para>Calculates the future value of an investment based on a series of equal payments at a specific periodic interest rate, over the number of payment periods in the term.
915
<entry><para>您計劃在未來 20 年內每年的最後一天在銀行帳戶存入 $4000。帳戶支付 8% 利息,每年複利計算。利息的支付日期為每年的最後一天。 如果要計算帳戶 20 年後的價值,請將下列的值放入前三個記憶體註冊:</para>
872
<entry><para>You plan to deposit $4000 in a bank account on the last day of each year for the next 20 years. The account pays 8% interest, compounded annually. Interest is paid on the last day of each year.
873
To calculate the value of your account in 20 years, press <guibutton>Fv</guibutton> and put the following values into the text entries:</para>
919
877
<listitem><para>4000</para></listitem>
923
881
<listitem><para>0.08</para></listitem>
884
<term>Number Of Periods</term>
927
885
<listitem><para>20</para></listitem>
930
<para>Click <guibutton>Fv</guibutton><guibutton> =</guibutton></para></entry>
888
<para>Click <guibutton>Calculate</guibutton></para></entry>
931
889
<entry><para>183047.86</para>
932
890
<para>當 20 年到期後,帳戶的價值為 $183,047.86。</para></entry>
934
892
<row valign="top">
893
<entry><para>Gross Profit Margin</para></entry>
894
<entry><para><guibutton>Gpm</guibutton></para></entry>
895
<entry><para>Calculates the resale price of a product, based on the product cost and the wanted gross profit margin.</para></entry>
896
<entry><para>You sell T-Shirts online. Each T-Shirt cost you $12 in material and labor. You want to sell the T-Shirts with a Gross Profit Margin of 0.40 - for every five dollars you earn, you want two to be profit. To calculate the price you would have to sell your T-Shirts for, press <guibutton>Gpm</guibutton> and put the following values into the text entries:</para>
900
<listitem><para>12</para></listitem>
904
<listitem><para>0.40</para></listitem>
907
<para>Click <guibutton>Calculate</guibutton></para></entry>
908
<entry><para>20</para>
909
<para>You will have to sell your T-Shirts for $20</para></entry>
935
912
<entry><para>分期付款</para> </entry>
936
913
<entry><para><guibutton>Pmt</guibutton></para></entry>
937
914
<entry><para>計算貸款每期付款的金額,其中付款日期為每一個付款週期的最後一天。</para>
938
<para>這個函數會使用下列的記憶體註冊:</para>
942
<listitem><para><replaceable>prin</replaceable>,本金</para></listitem>
946
<listitem><para><replaceable>int</replaceable>,定期利率</para></listitem>
950
<listitem><para><replaceable>n</replaceable>,期間</para></listitem>
954
<entry><para>You are considering a $120,000 mortgage for 30 years at an annual interest rate of 11.0%. Given the annual interest rate, you determine that the simple monthly interest rate is 0.11 / 12 = 0.00917. The term is 30 * 12 = 360 months. To calculate the monthly repayment for this mortgage, put the following values into the first three memory registers:</para>
916
<entry><para>You are considering a $120,000 mortgage for 30 years at an annual interest rate of 11.0%. Given the annual interest rate, you determine that the simple monthly interest rate is 0.11 / 12 = 0.00917. The term is 30 * 12 = 360 months. To calculate the monthly repayment for this mortgage, press <guibutton>Pmt</guibutton> and put the following values into the text entries:</para>
919
<term>Principal</term>
958
920
<listitem><para>120000</para></listitem>
962
924
<listitem><para>0.00917</para></listitem>
966
928
<listitem><para>360</para></listitem>
969
<para>Click <guibutton>Pmt</guibutton><guibutton> =</guibutton></para></entry>
931
<para>Click <guibutton>Calculate</guibutton></para></entry>
970
932
<entry><para>1143.15</para>
971
933
<para>每月償還的金額為 $1143.15。</para></entry>
973
935
<row valign="top">
974
936
<entry><para>現值</para> </entry>
975
937
<entry><para><guibutton>Pv</guibutton></para></entry>
976
<entry><para>依據定期固定金額付款計算投資的現值,每期的金額 <replaceable>pmt</replaceable> 在付款期間內的利率為 <replaceable>int</replaceable> 定期貼現率。</para>
977
<para>這個函數會使用下列的記憶體註冊:</para>
981
<listitem><para><replaceable>pmt</replaceable>,分期付款</para></listitem>
985
<listitem><para><replaceable>int</replaceable>,定期利率</para></listitem>
989
<listitem><para><replaceable>n</replaceable>,週期數</para></listitem>
938
<entry><para>Calculates the present value of an investment based on a series of equal payments, discounted at a periodic interest rate, over the number of payment periods in the term.
993
941
<entry><para>您剛嬴得了一佰萬元。獎金將分 20 年領取每年領取 $50,000。每年的最後一天領取獎金。如果您想接受每年領取 $50,000,即表示您的投資為年利率 9% 每年複利計算。</para>
994
<para>但是,您也可以選擇一次領取 $400,000,而不是一佰萬的年金。 如果要計算那一種比較符合現值,請將下列的值放入前三個記憶體註冊:</para>
942
<para>However, you are given the option of receiving a single lump-sum payment of $400,000 instead of the million dollars annuity.
943
To calculate which option is worth more in today's dollars, press <guibutton>Pv</guibutton> and put the following values into the text entries:</para>
998
947
<listitem><para>50000</para></listitem>
1002
951
<listitem><para>0.09</para></listitem>
954
<term>Number Of Periods</term>
1006
955
<listitem><para>20</para></listitem>
1009
<para>Click <guibutton>Pv</guibutton><guibutton> =</guibutton></para></entry>
958
<para>Click <guibutton>Calculate</guibutton></para></entry>
1010
959
<entry><para>456427.28</para>
1011
960
<para>$1,000,000 分20 年領取相當於現值 $456,427.28。</para></entry>
1013
962
<row valign="top">
1014
963
<entry><para>定期利率</para> </entry>
1015
964
<entry><para><guibutton>利率</guibutton></para></entry>
1016
<entry><para>計算增加現值<replaceable>pv</replaceable> 的投資使其等於 <replaceable>fv</replaceable> 期約值所需的定期利率 (在<replaceable>期間</replaceable>內的複利週期數)。</para>
1017
<para>這個函數會使用下列的記憶體註冊:</para>
1021
<listitem><para><replaceable>fv</replaceable>,期約值</para></listitem>
1025
<listitem><para><replaceable>pv</replaceable>,現值</para></listitem>
1029
<listitem><para><replaceable>n</replaceable>,期間</para></listitem>
965
<entry><para>Calculates the periodic interest necessary to increase an investment of a present value to a future value, over a number of compounding periods.
1033
<entry><para>您已經投資了 $20,000 的債券。債券為 5 年期,到期值為 $30,000。利息為每月複利計算。期間為 5 * 12 = 60 個月。 如果要計算這項投資的定期利率,請將下列的值放入前三個記憶體註冊:</para>
968
<entry><para>You have invested $20,000 in a bond. The bond matures in five years, and has a maturity value of $30,000. Interest is compounded monthly. The term is 5 * 12 = 60 months.
969
To calculate the periodic interest rate for this investment, press <guibutton>Rate</guibutton> and put the following values into the text entries:</para>
1037
973
<listitem><para>30000</para></listitem>
1041
977
<listitem><para>20000</para></listitem>
1045
981
<listitem><para>60</para></listitem>
1048
<para>Click <guibutton>Rate</guibutton><guibutton> =</guibutton></para></entry>
984
<para>Click <guibutton>Calculate</guibutton></para></entry>
1049
985
<entry><para>.00678</para>
1050
986
<para>月利率為 0.678%。年利率為 0.678% * 12 = 8.14%。</para></entry>
1092
1014
<entry><para>年數合計折舊</para> </entry>
1093
1015
<entry><para><guibutton>Syd</guibutton></para></entry>
1094
1016
<entry><para>使用年數合計折舊法計算資產在指定時間週期內的折舊額。這種折舊法會加速折舊率,因此早期的折舊額會遠大於後期的折舊額。 折舊額為<replaceable>成本</replaceable> - <replaceable>剩餘價值</replaceable>。使用年限是資產的折舊期間,通常為年。</para>
1095
<para>這個函數會使用下列的記憶體註冊:</para>
1099
<listitem><para><replaceable>成本</replaceable>,購買資產的金額</para></listitem>
1103
<listitem><para><replaceable>剩餘價值</replaceable>,資產在到達使用年限後的價值</para></listitem>
1107
<listitem><para><replaceable>年限</replaceable>,資產的使用年限</para></listitem>
1111
<listitem><para><replaceable>週期</replaceable>,提列折舊的時間週期</para></listitem>
1115
<entry><para>您已經購買了 $8000 的事務機器。機器的使用年限為 6 年。6 年後的剩餘價值為 $900。 如果要計算第 4 年的折舊額,請使用年數合計折舊法將下列的值放入前四個記憶體註冊:</para>
1018
<entry><para>You have just purchased an office machine for $8000. The useful life of this machine is six years. The salvage value after six years is $900.
1019
To calculate the depreciation expense for the fourth year, using the sum-of-the-years'-digits method, press <guibutton>Syd</guibutton>, and put the following values into the text entries:</para>
1119
1023
<listitem><para>8000</para></listitem>
1120
1024
</varlistentry>
1026
<term>Salvage</term>
1123
1027
<listitem><para>900</para></listitem>
1124
1028
</varlistentry>
1127
1031
<listitem><para>6</para></listitem>
1128
1032
</varlistentry>
1131
1035
<listitem><para>4</para></listitem>
1132
1036
</varlistentry>
1133
1037
</variablelist>
1134
<para>Click <guibutton>Syd</guibutton><guibutton> =</guibutton></para></entry>
1038
<para>Click <guibutton>Calculate</guibutton></para></entry>
1135
1039
<entry><para>1014.29</para>
1136
1040
<para>第 4 年的折舊額為 $1014.29。</para></entry>
1138
1042
<row valign="top">
1139
1043
<entry><para>付款週期</para> </entry>
1140
1044
<entry><para><guibutton>期間</guibutton></para></entry>
1141
<entry><para>計算在一般年金期間內將期約值累積到 <replaceable>fv</replaceable> 所需的付款週期數 (以定期利率 <replaceable>int</replaceable> 計算)。每次付款金額等於金額 <replaceable>pmt</replaceable>。</para>
1142
<para>這個函數會使用下列的記憶體註冊:</para>
1146
<listitem><para><replaceable>pmt</replaceable>,分期付款</para></listitem>
1150
<listitem><para><replaceable>fv</replaceable>,期約值</para></listitem>
1154
<listitem><para><replaceable>int</replaceable>,定期利率</para></listitem>
1045
<entry><para>Calculates the number of payment periods that are necessary during the term of an ordinary annuity, to accumulate a future value, at a certain periodic interest rate.</para>
1158
<entry><para>您計劃在每年的最後一天將 $1800 存入銀行帳戶。帳戶支付 11% 利息,每年複利計算。利息的支付日期為每年的最後一天。 如果要計算累積到 $120,000 所需的時間週期,請將下列的值放前三個記憶體註冊:</para>
1047
<entry><para>You plan to deposit $1800 in a bank account on the last day of each year. The account pays 11% interest, compounded annually. Interest is paid on the last day of each year.
1048
To calculate the time period necessary to accumulate $120,000, press <guibutton>Term</guibutton>, and put the following values into the text entries:</para>
1162
1052
<listitem><para>1800</para></listitem>
1163
1053
</varlistentry>
1166
1056
<listitem><para>120000</para></listitem>
1167
1057
</varlistentry>
1170
1060
<listitem><para>0.11</para></listitem>
1171
1061
</varlistentry>
1172
1062
</variablelist>
1173
<para>Click <guibutton>Term</guibutton><guibutton> =</guibutton></para></entry>
1063
<para>Click <guibutton>Calculate</guibutton></para></entry>
1174
1064
<entry><para>20.32</para>
1175
1065
<para>帳戶會在 20.32 年內累積到 $120,000。</para></entry>
1239
1129
</informaltable>
1241
<sect3 id="gcalctool-num-base">
1242
<title>設定數值基礎</title>
1243
<para>如果要設定數值基礎,請選取 <xref linkend="gcalctool-TBL-num-base"/> 中所述的按鈕。</para>
1244
<table id="gcalctool-TBL-num-base" frame="all">
1245
<title>設定數值基礎</title>
1246
<tgroup cols="3" colsep="1" rowsep="1">
1247
<colspec colname="COLSPEC0" colwidth="50*"/>
1248
<colspec colname="COLSPEC1"/>
1249
<colspec colname="COLSPEC2" colwidth="50*"/>
1252
<entry colname="COLSPEC0">
1253
<para>功能</para></entry>
1254
<entry colname="COLSPEC1">
1255
<para>按鈕</para></entry>
1256
<entry colname="COLSPEC2">
1257
<para>說明</para></entry>
1262
<entry><para>二進制基礎</para> </entry>
1263
<entry><para><guibutton>Bin</guibutton></para></entry>
1264
<entry><para>將數值基礎設為二進制,即基底為 2。</para></entry>
1267
<entry><para>八進制基礎</para> </entry>
1268
<entry><para><guibutton>Oct</guibutton></para></entry>
1269
<entry><para>將數值基礎設為八進制,即基底為 8。</para></entry>
1272
<entry><para>十進制基礎</para> </entry>
1273
<entry><para><guibutton>Dec</guibutton></para></entry>
1274
<entry><para>Sets the numeric base to decimal, that is, base 10. Decimal is the default numeric base. If you change from Scientific mode to another mode, <application>gcalctool</application> automatically sets the numeric base to decimal.</para></entry>
1277
<entry><para>十六進制基礎</para> </entry>
1278
<entry><para><guibutton>Hex</guibutton></para></entry>
1279
<entry><para>將數值基礎設為十六進制,即基底為 16。</para></entry>
1285
1131
<sect3 id="gcalctool-display-type">
1286
1132
<title>設定顯示類型</title>
1287
1133
<para>如果要設定顯示類型,請選取 <xref linkend="gcalctool-TBL-display-type"/> 中所述的按鈕。</para>
1564
1410
<para>這一版的 <application>Calculator</application> 不支援常用對數和自然對數。</para>
1567
<sect3 id="gcalctool-logic-calc">
1568
<title>To Perform Bitwise Calculations</title>
1569
<para>To perform bitwise calculations, use the buttons described in <xref linkend="gcalctool-TBL-logic-calc"/>. </para>
1570
<table id="gcalctool-TBL-logic-calc" frame="all">
1571
<title>Performing Bitwise Calculations</title>
1572
<tgroup cols="5" colsep="1" rowsep="1">
1573
<colspec colname="COLSPEC0" colwidth="50*"/>
1574
<colspec colname="COLSPEC1"/>
1575
<colspec colname="COLSPEC2" colwidth="50*"/>
1576
<colspec colname="COLSPEC3" colwidth="50*"/>
1577
<colspec colname="COLSPEC4" colwidth="50*"/>
1580
<entry colname="COLSPEC0">
1581
<para>功能</para></entry>
1582
<entry colname="COLSPEC1">
1583
<para>按鈕</para></entry>
1584
<entry colname="COLSPEC2">
1585
<para>說明</para></entry>
1586
<entry colname="COLSPEC3">
1587
<para>範例</para></entry>
1588
<entry colname="COLSPEC4">
1589
<para>結果</para></entry>
1594
<entry><para>Bitwise OR</para> </entry>
1595
<entry><para><guibutton>OR</guibutton></para></entry>
1596
<entry><para>Performs a bitwise OR operation on the current value in the display area and the next number that you enter, treating both numbers as unsigned long integers.</para></entry>
1597
<entry><para>10001000 <guibutton>OR</guibutton> 00010001</para></entry>
1598
<entry><para>10011001</para></entry>
1601
<entry><para>Bitwise AND</para> </entry>
1602
<entry><para><guibutton>AND</guibutton></para></entry>
1603
<entry><para>Performs a bitwise AND operation on the current value in the display area and the next number that you enter, treating both numbers as unsigned long integers.</para></entry>
1604
<entry><para>10101010 <guibutton>AND</guibutton> 00110011</para></entry>
1605
<entry><para>100010</para></entry>
1608
<entry><para>Bitwise NOT</para> </entry>
1609
<entry><para><guibutton>NOT</guibutton></para></entry>
1610
<entry><para>Performs a bitwise NOT operation on the current value in the display area, treating the number as an unsigned long integer.</para></entry>
1611
<entry><para>For arithmetic precedence mode:</para>
1612
<para><guibutton>NOT</guibutton> 1357ACE</para>
1613
<para>For non-arithmetic precedence mode:</para>
1614
<para>1357ACE <guibutton>NOT</guibutton></para></entry>
1615
<entry><para>FECA8531</para></entry>
1618
<entry><para>Bitwise XOR</para> </entry>
1619
<entry><para><guibutton>XOR</guibutton></para></entry>
1620
<entry><para>Performs a bitwise XOR operation on the current value in the display area and the next number that you enter, treating both numbers as unsigned long integers.</para></entry>
1621
<entry><para>1100 <guibutton>XOR</guibutton> 1010</para></entry>
1622
<entry><para>110</para></entry>
1625
<entry><para>Bitwise XNOR</para> </entry>
1626
<entry><para><guibutton>XNOR</guibutton></para></entry>
1627
<entry><para>Performs a bitwise XNOR operation on the current value in the display area and the next number that you enter, treating both numbers as unsigned long integers.</para></entry>
1628
<entry><para>1100 <guibutton>XNOR</guibutton> 1010</para></entry>
1629
<entry><para>11111111111111111111111111111001</para></entry>
1635
<sect3 id="gcalctool-calc-bit-manipulation-ext">
1636
<title>To Perform Bit Manipulations on Integers</title>
1637
<para>To change the values of individuals bits in integer values, choose <menuchoice><guimenu>View</guimenu><guimenuitem>Show Bit Editor</guimenuitem></menuchoice>. This option is only available in Scientific mode.</para>
1638
<para>If the calculator display shows an integer value, then each of the bits in that integer value is displayed as a collection of 0's and 1's. By clicking on any of these individual bits, their value can be toggled, causing the displayed integer value to be adjusted accordingly.</para>
1640
1413
<sect3 id="gcalctool-enter-exp">
1641
1414
<title>輸入指數</title>
1642
1415
<para>如果要輸入指數字,請使用 <guibutton>Exp</guibutton> 按鈕。</para>
1692
<sect3 id="gcalctool-misc-calc">
1693
<title>執行其他的科學計算</title>
1694
<para>To perform miscellaneous scientific calculations, use the buttons described in <xref linkend="gcalctool-TBL-misc-calc"/>. </para>
1695
<table id="gcalctool-TBL-misc-calc" frame="all">
1696
<title>執行其他的科學計算</title>
1697
<tgroup cols="5" colsep="1" rowsep="1">
1698
<colspec colname="COLSPEC0" colwidth="50*"/>
1699
<colspec colname="COLSPEC1"/>
1700
<colspec colname="COLSPEC2" colwidth="50*"/>
1701
<colspec colname="COLSPEC3" colwidth="50*"/>
1702
<colspec colname="COLSPEC4" colwidth="50*"/>
1705
<entry colname="COLSPEC0">
1706
<para>功能</para></entry>
1707
<entry colname="COLSPEC1">
1708
<para>按鈕</para></entry>
1709
<entry colname="COLSPEC2">
1710
<para>說明</para></entry>
1711
<entry colname="COLSPEC3">
1712
<para>範例</para></entry>
1713
<entry colname="COLSPEC4">
1714
<para>結果</para></entry>
1719
<entry><para>e to the <replaceable>x</replaceable> power</para> </entry>
1720
<entry><para>e<superscript><replaceable>x</replaceable></superscript></para></entry>
1721
<entry><para>計算顯示區域之目前值其 <literal>e</literal> 的次方值。</para></entry>
1722
<entry><para>2 e<superscript><replaceable>x</replaceable></superscript></para></entry>
1723
<entry><para>7.39</para></entry>
1726
<entry><para>10 to the <replaceable>x</replaceable> power</para> </entry>
1727
<entry><para>10<superscript><replaceable>x</replaceable></superscript></para></entry>
1728
<entry><para>計算顯示區域之目前值其 10 的次方值。</para></entry>
1729
<entry><para>2 10<superscript><replaceable>x</replaceable></superscript></para></entry>
1730
<entry><para>100</para></entry>
1733
<entry><para>x to the <replaceable>y</replaceable> power</para> </entry>
1734
<entry><para><replaceable>x</replaceable><superscript><replaceable>y</replaceable></superscript></para></entry>
1735
<entry><para>將顯示區域的目前值作為您輸入之下一個值的次方。</para></entry>
1736
<entry><para>2 <replaceable>x</replaceable><superscript><replaceable>y</replaceable></superscript> <guibutton>4</guibutton> <guibutton>=</guibutton></para></entry>
1737
<entry><para>16</para></entry>
1740
<entry><para><replaceable>x</replaceable> 階乘</para> </entry>
1741
<entry><para><guibutton><replaceable>x</replaceable>!</guibutton></para></entry>
1742
<entry><para>計算顯示區域之目前值的階乘。<replaceable>x</replaceable> 階乘為 <replaceable>x</replaceable>*(<replaceable>x</replaceable>-1)*(<replaceable>x</replaceable>-2)...*1。這個函數只可套用於正整數。</para></entry>
1743
<entry><para>4 <guibutton><replaceable>x</replaceable>!</guibutton></para></entry>
1744
<entry><para>24</para></entry>
1747
<entry><para>Modulus Division</para> </entry>
1748
<entry><para><guibutton>Mod</guibutton></para></entry>
1749
<entry><para>Divides the current integer value in the display area by the next integer number that you enter, displaying the remainder.</para></entry>
1750
<entry><para>15 <guibutton>Mod</guibutton> <guibutton>4</guibutton> <guibutton>=</guibutton></para></entry>
1751
<entry><para>3</para></entry>
1754
<entry><para>亂數產生器</para> </entry>
1755
<entry><para><guibutton>Rand</guibutton></para></entry>
1756
<entry><para>Generates a random number in the range 0.0 to 1.0 then displays the random number in the display area.</para></entry>
1757
<entry><para><guibutton>Rand</guibutton></para></entry>
1758
<entry><para>0.14</para></entry>
1765
<sect2 id="gcalctool-programming-mode">
1766
<title>To Perform Programming Calculations</title>
1767
<para>To change to Programming mode, choose
1769
<guimenu>View</guimenu>
1770
<guimenuitem>Programming</guimenuitem>
1773
<para>When you change to Programming mode, the following widget is displayed above the Base and Advanced mode buttons:</para>
1775
<!-- ==== Figure ==== -->
1776
<figure id="gcalctool-FIG-programming">
1777
<title><application>gcalctool</application> Programming Mode Buttons</title>
1780
<imageobject><imagedata fileref="figures/gcalctool_programming_window.png" format="PNG"/>
1783
<phrase>Shows <application>gcalctool</application> Programming mode buttons. </phrase>
1788
<!-- ==== End of Figure ==== -->
1789
<sect3 id="gcalctool-num-base">
1790
<title>設定數值基礎</title>
1791
<para>如果要設定數值基礎,請選取 <xref linkend="gcalctool-TBL-num-base"/> 中所述的按鈕。</para>
1792
<table id="gcalctool-TBL-num-base" frame="all">
1793
<title>設定數值基礎</title>
1794
<tgroup cols="3" colsep="1" rowsep="1">
1795
<colspec colname="COLSPEC0" colwidth="50*"/>
1796
<colspec colname="COLSPEC1"/>
1797
<colspec colname="COLSPEC2" colwidth="50*"/>
1800
<entry colname="COLSPEC0">
1801
<para>功能</para></entry>
1802
<entry colname="COLSPEC1">
1803
<para>按鈕</para></entry>
1804
<entry colname="COLSPEC2">
1805
<para>說明</para></entry>
1810
<entry><para>二進制基礎</para> </entry>
1811
<entry><para><guibutton>Bin</guibutton></para></entry>
1812
<entry><para>將數值基礎設為二進制,即基底為 2。</para></entry>
1815
<entry><para>八進制基礎</para> </entry>
1816
<entry><para><guibutton>Oct</guibutton></para></entry>
1817
<entry><para>將數值基礎設為八進制,即基底為 8。</para></entry>
1820
<entry><para>十進制基礎</para> </entry>
1821
<entry><para><guibutton>Dec</guibutton></para></entry>
1822
<entry><para>Sets the numeric base to decimal, that is, base 10. Decimal is the default numeric base. If you change from Programming mode to another mode, <application>gcalctool</application> automatically sets the numeric base to decimal.</para></entry>
1825
<entry><para>十六進制基礎</para> </entry>
1826
<entry><para><guibutton>Hex</guibutton></para></entry>
1827
<entry><para>將數值基礎設為十六進制,即基底為 16。</para></entry>
1833
<sect3 id="gcalctool-calc-bit-manipulation-ext">
1834
<title>To Perform Bit Manipulations on Integers</title>
1835
<para>If the calculator display shows an integer value, then each of the bits in that integer value is displayed as a collection of 0's and 1's in the Bit Editor. By clicking on any of these individual bits, their value can be toggled, causing the displayed integer value to be adjusted accordingly.</para>
1837
<sect3 id="gcalctool-logic-calc">
1838
<title>To Perform Bitwise Calculations</title>
1839
<para>To perform bitwise calculations, use the buttons described in <xref linkend="gcalctool-TBL-logic-calc"/>. </para>
1840
<table id="gcalctool-TBL-logic-calc" frame="all">
1841
<title>Performing Bitwise Calculations</title>
1842
<tgroup cols="5" colsep="1" rowsep="1">
1843
<colspec colname="COLSPEC0" colwidth="50*"/>
1844
<colspec colname="COLSPEC1"/>
1845
<colspec colname="COLSPEC2" colwidth="50*"/>
1846
<colspec colname="COLSPEC3" colwidth="50*"/>
1847
<colspec colname="COLSPEC4" colwidth="50*"/>
1850
<entry colname="COLSPEC0">
1851
<para>功能</para></entry>
1852
<entry colname="COLSPEC1">
1853
<para>按鈕</para></entry>
1854
<entry colname="COLSPEC2">
1855
<para>說明</para></entry>
1856
<entry colname="COLSPEC3">
1857
<para>範例</para></entry>
1858
<entry colname="COLSPEC4">
1859
<para>結果</para></entry>
1864
<entry><para>Bitwise OR</para> </entry>
1865
<entry><para><guibutton>OR</guibutton></para></entry>
1866
<entry><para>Performs a bitwise OR operation on the current value in the display area and the next number that you enter, treating both numbers as unsigned long integers.</para></entry>
1867
<entry><para>10001000 <guibutton>OR</guibutton> 00010001</para></entry>
1868
<entry><para>10011001</para></entry>
1871
<entry><para>Bitwise AND</para> </entry>
1872
<entry><para><guibutton>AND</guibutton></para></entry>
1873
<entry><para>Performs a bitwise AND operation on the current value in the display area and the next number that you enter, treating both numbers as unsigned long integers.</para></entry>
1874
<entry><para>10101010 <guibutton>AND</guibutton> 00110011</para></entry>
1875
<entry><para>100010</para></entry>
1878
<entry><para>Bitwise NOT</para> </entry>
1879
<entry><para><guibutton>NOT</guibutton></para></entry>
1880
<entry><para>Performs a bitwise NOT operation on the current value in the display area, treating the number as an unsigned long integer.</para></entry>
1881
<entry><para>For arithmetic precedence mode:</para>
1882
<para><guibutton>NOT</guibutton> 1357ACE</para>
1883
<para>For non-arithmetic precedence mode:</para>
1884
<para>1357ACE <guibutton>NOT</guibutton></para></entry>
1885
<entry><para>FECA8531</para></entry>
1888
<entry><para>Bitwise XOR</para> </entry>
1889
<entry><para><guibutton>XOR</guibutton></para></entry>
1890
<entry><para>Performs a bitwise XOR operation on the current value in the display area and the next number that you enter, treating both numbers as unsigned long integers.</para></entry>
1891
<entry><para>1100 <guibutton>XOR</guibutton> 1010</para></entry>
1892
<entry><para>110</para></entry>
1895
<entry><para>Bitwise XNOR</para> </entry>
1896
<entry><para><guibutton>XNOR</guibutton></para></entry>
1897
<entry><para>Performs a bitwise XNOR operation on the current value in the display area and the next number that you enter, treating both numbers as unsigned long integers.</para></entry>
1898
<entry><para>1100 <guibutton>XNOR</guibutton> 1010</para></entry>
1899
<entry><para>11111111111111111111111111111001</para></entry>
1919
1905
<sect3 id="gcalctool-num-manip">
1920
1906
<title>處理二進制數字</title>
1921
1907
<para>如果要處理二進制數字,請使用 <xref linkend="gcalctool-TBL-num-manip"/> 中所述的按鈕。</para>
2030
<entry><para>e to the <replaceable>x</replaceable> power</para> </entry>
2031
<entry><para>e<superscript><replaceable>x</replaceable></superscript></para></entry>
2032
<entry><para>計算顯示區域之目前值其 <literal>e</literal> 的次方值。</para></entry>
2033
<entry><para>2 e<superscript><replaceable>x</replaceable></superscript></para></entry>
2034
<entry><para>7.39</para></entry>
2037
<entry><para>10 to the <replaceable>x</replaceable> power</para> </entry>
2038
<entry><para>10<superscript><replaceable>x</replaceable></superscript></para></entry>
2039
<entry><para>計算顯示區域之目前值其 10 的次方值。</para></entry>
2040
<entry><para>2 10<superscript><replaceable>x</replaceable></superscript></para></entry>
2041
<entry><para>100</para></entry>
2044
<entry><para>x to the <replaceable>y</replaceable> power</para> </entry>
2045
<entry><para><replaceable>x</replaceable><superscript><replaceable>y</replaceable></superscript></para></entry>
2046
<entry><para>將顯示區域的目前值作為您輸入之下一個值的次方。</para></entry>
2047
<entry><para>2 <replaceable>x</replaceable><superscript><replaceable>y</replaceable></superscript> <guibutton>4</guibutton> <guibutton>=</guibutton></para></entry>
2048
<entry><para>16</para></entry>
2051
<entry><para><replaceable>x</replaceable> 階乘</para> </entry>
2052
<entry><para><guibutton><replaceable>x</replaceable>!</guibutton></para></entry>
2053
<entry><para>計算顯示區域之目前值的階乘。<replaceable>x</replaceable> 階乘為 <replaceable>x</replaceable>*(<replaceable>x</replaceable>-1)*(<replaceable>x</replaceable>-2)...*1。這個函數只可套用於正整數。</para></entry>
2054
<entry><para>4 <guibutton><replaceable>x</replaceable>!</guibutton></para></entry>
2055
<entry><para>24</para></entry>
2058
<entry><para>Modulus Division</para> </entry>
2059
<entry><para><guibutton>Mod</guibutton></para></entry>
2060
<entry><para>Divides the current integer value in the display area by the next integer number that you enter, displaying the remainder.</para></entry>
2061
<entry><para>15 <guibutton>Mod</guibutton> <guibutton>4</guibutton> <guibutton>=</guibutton></para></entry>
2062
<entry><para>3</para></entry>
2065
<entry><para>亂數產生器</para> </entry>
2066
<entry><para><guibutton>Rand</guibutton></para></entry>
2067
<entry><para>Generates a random number in the range 0.0 to 1.0 then displays the random number in the display area.</para></entry>
2068
<entry><para><guibutton>Rand</guibutton></para></entry>
2069
<entry><para>0.14</para></entry>
2071
2015
<row valign="top">
2072
2016
<entry><para>十六進制數字</para> </entry>
2073
2017
<entry><para><guibutton>A</guibutton> to <guibutton>F</guibutton> inclusive</para></entry>