跳至內容

Windows小算盤

本頁使用了標題或全文手工轉換
維基百科,自由的百科全書

這是本頁的一個歷史版本,由Totoleung對話 | 貢獻2007年10月14日 (日) 09:21 概要編輯。這可能和目前版本存在着巨大的差異。

Windows小算盤
File:Vista Calculator logo.JPG
File:Calculator (Windows).JPG
Windows Vista 中的Windows小算盤
開發者微軟
當前版本6.0.6000.16386(2006年11月8日
原始碼庫 編輯維基數據鏈接
作業系統Windows
類型計算機
許可協議 編輯維基數據鏈接
網站aka.ms/calculator 編輯維基數據

Windows小算盤Microsoft Windows內置的其中一款應用程式,可以用作執行計算。在「標準型」選項中,可進行簡單的四則運算加法減法乘法,以及除法),與一些低階入門計算機接近。在「工程型」選項中,則可以進行較複雜的計算,如可選擇除十進位外的十六進位二進位以及八進位數字系統。此軟件存在於所有的Microsoft Windows版本中。

概要

小算盤程式有一個較簡單的人機界面,它的體積很小,但功能上就可以與大部分的四則計算機或科學計算機媲美。預設上,這個程式是用"標準模式"執行,即是一個四則計算機。一些較先進的功能可以在工程模式實現,包括對數記數系統轉換,一些布爾函數弧度角度梯度的支援。同時對一元積分統計函數提供支援。但是,它不支援使用者自定義的函數,複數,儲存變量的分段結果(與傳統的蓄電池計算機不同)。自動的極坐標系 - 直角坐標轉換,or support two-variables statistics, making it impractical to use with many engineering, physics or high school mathematics tasks. Calculator is not able to do "constant calculations". When a user wants to apply the same constant and operation many times, the second and following calculations can be done without retyping the operation and constant. So one can type: 2*7=[14] 3=[21] 4=[28] etc. Calculator ignores the number typed before the equal sign.

Some versions of Calculator have a way to automate long calculations. Writing a text file in Notepad or another text editor containing a number on the first row, then operators followed by numbers on the next row and pasting this content to calculator's textbox will result in it performing the described calculations. This may not work correctly with all versions of Calculator, and depends on precise text formatting. Also, this sort of "automation" does not work with commands other that the standard arithmetic operators (+, - , /, *), making it only suitable for computing large cumulative sums starting from a file or spreadsheet data.

File:Calculator (Windows).JPG
Windows Vista中的小算盤工程型模式。

所有的Microsoft Windows版本都含有小算盤,但自從Windows 95,它的介面和功能都沒有太大改變。在Windows 2000以後的NT版本作業系統中,小算盤使用了arbitrary-precision arithmetic資料庫,去取代以往的IEEE浮點數資料庫。[1] It offers infinite precision for basic operations (addition, subtraction, multiplication, division) and 32 digits of precision for advanced operations (square root, transcendental operators).

Many specialized keyboards have a "calculator" key, which launches Calculator by default.

程式中的錯誤

The version of Calculator shipped with Windows 3.0 and Windows 3.1 suffered from a bug causing it to display incorrect results for certain classes of calculations. The most typical example was the 1-1.1 operation, which would lead to a long number sequence approximating the expected result, -0.1, such as -0.095645564564564.... One of the most joked about calculation is 3.11-3.1, results in 0.00. This leads to the joke "Q: What is the difference between 3.11 and 3.1? A: Nothing!" (In this case, "3.11" and "3.1" imply the version numbers of Windows.) This may, however, be attributed to floating point calculations with insufficient accuracy as they are prone to yield wrong results in calculations with numbers that cannot be accurately represented in binary. The modern versions, described above, eliminate this bug.

Calculator since Windows 3.0 has had the 'sqrt' button available only in the standard mode. Switching over to scientific mode will make this button disappear. There is no fix, but Microsoft suggests raising numbers to the half power (e.g. 144 ^ .5 ),[2] even though selecting the 'inv' checkbox and clicking 'x^2' button will provide the square root function.

If you type 「calc /.setup「 into the RUN box on windows, calculator will be launched, but displaying 「0,e+0「 instead of 「0「 and when you click a number-button 1-9, it will only make a characteristic sound instead of typing a number.

All Calculator versions until the one for Windows XP saves its configuration (whether to use scientific or standard mode) to the legacy win.ini - a file that is not writable for users. So non-admin users will always start in standard mode. Calculator Plus fixes this bug by saving the information where it belongs - into the user portion of the registry.

非必須的小算盤代替物

File:Powercalc.PNG
微軟的Power Calculator
File:Calcplusconversion.jpg
微軟的計算器增強版在換算法模式。它亦擁有"標準"和"科學"模式
File:Microsoft Powercalc.PNG
微軟PowerToy Calculator在Windows XP中的程式錯誤

微軟曾經在下載中心,發佈過兩款計算機程式。它們的功能都比Windows內置的強大。

微軟計算器增強版 - 除了"標準"和"科學"模式,它亦擁有'換算法'模式。'換算法'模式支援單位匯率換算。計算器增強版支援從歐洲中央銀行的網頁中,直接更新外幣匯率的資訊。它亦提供一個直接的介面。

Power Calculator - 它是其中的一款的Windows XP PowerToy。Powertoy Calculator支援圖形計算。雖然這個程式容許使用者調整計算機的精確度,但有一些小問題。例如函數,程式生就生產出一個錯誤的圖形。它對一個擁有大弧度正弦函數,產生出一個錯誤的數值,例如

其他連結

參考

  1. ^ The Old New Thing blog by Raymond Chen: When you change the insides, nobody notices
  2. ^ Square Root (sqrt) in Calculator's Scientific Mode

外部連結