added: button sqrt() on the first tab
(there was not a function to it) git-svn-id: svn://ttmath.org/publicrep/ttcalc/trunk@232 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
parent
fbab1df13f
commit
f3ee187413
20
CHANGELOG
20
CHANGELOG
|
@ -1,14 +1,30 @@
|
|||
Version 0.9.0 prerelease (2009.10.18):
|
||||
Version 0.9.0 prerelease (2009.11.01):
|
||||
* fixed: when 'C' button was pressed, the cursor was not put in the edit window
|
||||
* added: Pad window - a multiline edit window
|
||||
* added: Checking for update dialog box
|
||||
* added: there are some new buttons on the standard tab
|
||||
- (...) - the whole expression is surrounded by brackets
|
||||
- 1/(...)
|
||||
- ;
|
||||
- % - a new percentage operator
|
||||
- floor/ceil/min/max/sqrt/root/gamma
|
||||
* added: some new options on display tab:
|
||||
- grouping
|
||||
- input decimal point
|
||||
- parameters separated by
|
||||
* changed: precision:
|
||||
Medium - 512 mantissa, 64 exponent
|
||||
Big - 1024 mantissa, 128 exponent
|
||||
|
||||
Changes from TTMath 0.9.0 prerelease relating to TTCalc:
|
||||
* added: operator percentage
|
||||
e.g. 1000-50%=1000-(1000*0,5)=500
|
||||
e.g. 1000-50% = 1000-(1000*0,5) = 500
|
||||
* added: function frac(x) - returns a value without the integer part
|
||||
(only fraction remains)
|
||||
* changed: algorithms in sqrt(x) and root(x ; n)
|
||||
they were not too much accurate for some integers
|
||||
e.g. Root(16;4) returned a value very closed to 2 but not exactly 2
|
||||
|
||||
|
||||
Version 0.8.7 prerelease (2009.09.16):
|
||||
* added: new language: Swedish
|
||||
|
|
|
@ -28,7 +28,7 @@ performed on an approximate value and the result is only an approximation too.
|
|||
|
||||
<p>
|
||||
For example try to calculate: 0.204 - 0.34*0.80 + 0.068, you would expect that the
|
||||
result would be: 0 but TTCalc gives you: 3.15544362088404722164691426e-30 which is
|
||||
result was 0 but TTCalc gives you: 3.15544362088404722164691426e-30 which is
|
||||
a good approximation to the real zero (look at e-30 part which means 10^(-30)).
|
||||
</p>
|
||||
|
||||
|
|
|
@ -10,6 +10,7 @@
|
|||
<param name="Keyword" value="round">
|
||||
<param name="Keyword" value="ceil">
|
||||
<param name="Keyword" value="floor">
|
||||
<param name="Keyword" value="frac">
|
||||
</object>
|
||||
</head>
|
||||
|
||||
|
@ -57,6 +58,11 @@ floor(2)=2<br>
|
|||
floor(-4.1)=-5<br>
|
||||
floor(-4.8)=-5</dd>
|
||||
|
||||
<dt>frac(x)</dt>
|
||||
<dd>This function returns a value without the integer part - only fraction remains<br>
|
||||
frac(45.789)=0.789<br>
|
||||
frac(-2.267)=-0.267<br>
|
||||
|
||||
</dl>
|
||||
|
||||
|
||||
|
|
|
@ -220,11 +220,11 @@ BEGIN
|
|||
BS_AUTORADIOBUTTON | BS_LEFT | WS_TABSTOP,21,42,256,10
|
||||
CONTROL "precision 3",IDC_RADIO_PRECISION_3,"Button",
|
||||
BS_AUTORADIOBUTTON | BS_LEFT | WS_TABSTOP,21,73,256,10
|
||||
LTEXT "info 1",IDC_LABEL_PRECISION_1_INFO,38,24,239,8,NOT
|
||||
LTEXT "info 1",IDC_LABEL_PRECISION_1_INFO,34,24,243,8,NOT
|
||||
WS_GROUP
|
||||
LTEXT "info 2",IDC_LABEL_PRECISION_2_INFO,38,55,239,8,NOT
|
||||
LTEXT "info 2",IDC_LABEL_PRECISION_2_INFO,34,55,243,8,NOT
|
||||
WS_GROUP
|
||||
LTEXT "info 3",IDC_LABEL_PRECISION_3_INFO,38,85,239,8,NOT
|
||||
LTEXT "info 3",IDC_LABEL_PRECISION_3_INFO,34,85,243,8,NOT
|
||||
WS_GROUP
|
||||
END
|
||||
|
||||
|
|
|
@ -1200,6 +1200,12 @@ BOOL WmTabCommand_Press_gamma(HWND hWnd, UINT message, WPARAM wParam, LPARAM lPa
|
|||
return true;
|
||||
}
|
||||
|
||||
BOOL WmTabCommand_Press_sqrt(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
|
||||
{
|
||||
InsertText("sqrt()", -1);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
@ -1263,6 +1269,8 @@ void CreateTabCommandMessagesTable(Messages<BOOL> & cmessages)
|
|||
cmessages.Associate(IDC_BUTTON_EXP, WmTabCommand_Press_exp);
|
||||
cmessages.Associate(IDC_BUTTON_BRACKETS_ALL, WmTabCommand_Press_bracketsall);
|
||||
cmessages.Associate(IDC_BUTTON_1DIV_BRACKETS_ALL, WmTabCommand_Press_1div_bracketsall);
|
||||
cmessages.Associate(IDC_BUTTON_SQRT, WmTabCommand_Press_sqrt);
|
||||
|
||||
|
||||
cmessages.Associate(IDC_BUTTON_ADD_VARIABLE, Variables::WmTabCommand_AddVariable);
|
||||
cmessages.Associate(IDC_BUTTON_EDIT_VARIABLE, Variables::WmTabCommand_EditVariable);
|
||||
|
|
Loading…
Reference in New Issue