Khác biệt giữa bản sửa đổi của “Trợ giúp:Tính toán”

Nội dung được xóa Nội dung được thêm vào
Dòng 74:
 
 
== OperatorsToán tử ==
 
{| cellpadding="6px" border=1 style="border:1px solid #C0C0C0; border-collapse:collapse;"
! ''OperatorToán tử''
! ''OperationPhép tính''
! ''ExamplesVí dụ''
|-
| nonekhông|| nonekhông
|
{| class="wikitable"
Dòng 101:
|}
 
Sai:
Wrong:
{| class="wikitable"
|{{xpd0|#expr:e4|gives={{!}}{{!}}}}
Dòng 113:
|}
 
So sánh:
Compare:
{| class="wikitable"
|{{xpd0|#expr:e^1.2|gives={{!}}{{!}}}}
Dòng 119:
|-
! ln
| Logarit tự nhiên
| Natural logarithm
|
{| class="wikitable"
|{{xpd0|#expr:ln2|gives={{!}}{{!}}}}
|}
Từ đây có thể tính log(2):
Hence, the common logarithm of e.g. 2:
{| class="wikitable"
|{{xpd0|#expr:ln2/ln10|gives={{!}}{{!}}}}
Dòng 169:
|{{xpd0|#expr:sin.1|gives={{!}}{{!}}}}
|}
WithGóc antính anglebằng in degreesđộ, e.g.ví dụ 30°:
{| class="wikitable"
|{{xpd0|#expr:sin(30*pi/180)|gives={{!}}{{!}}}}
Dòng 243:
|-
! ^
| Lũy thừa
| Power
|
{| class="wikitable"
Dòng 264:
|-
! *
| Phép nhân
| Multiplication
|
{| class="wikitable"
Dòng 273:
|-
! /
|| Division,Phép same aschia '''div'''
|
{| class="wikitable"
Dòng 310:
|-
! <tt>+</tt>
|| Phép cộng
|| Addition
|
{| class="wikitable"
Dòng 317:
|-
! <tt>-</tt>
|| SubtractionPhép trừ
|
{| class="wikitable"
Dòng 323:
|}
|-
! Làm tròn
! round
|| Rounds off the number on the left to the power of 1/10 given on the right (PHP function [http://www.php.net/manual/en/function.round.php round])
|
Dòng 339:
|-
! =
|| EqualityBằng (numericalsố incl. logicallogic)
|
{| class="wikitable"
Dòng 346:
|-
! &lt;&gt;
| Inequality,Khác same as ('''!=''')
|
{| class="wikitable"
Dòng 364:
|-
! &lt;
|| Less thanhơn
|
{| class="wikitable"
Dòng 375:
|-
! &gt;
|| GreaterLớn thanhơn
|
{| class="wikitable"
Dòng 386:
|-
! &lt;=
| Bé hơn hoặc bằng
| Less than or equal to
|
{| class="wikitable"
Dòng 397:
|-
! &gt;=
| Lớn hơn hoặc bằng
| Greater than or equal to
|
{| class="wikitable"
Dòng 408:
|-
! and
| Phép logic VÀ
| Logical AND
|
{| class="wikitable"
Dòng 421:
|-
! or
| Phép logic HOẶC
| Logical OR
|
{| class="wikitable"