Difference between revisions of "R: Matematika Dasar"
Jump to navigation
Jump to search
Onnowpurbo (talk | contribs) |
Onnowpurbo (talk | contribs) |
||
Line 17: | Line 17: | ||
-4:3 | -4:3 | ||
− | =abs | + | =abs remainder== |
absolute | absolute | ||
Line 32: | Line 32: | ||
sign(-4:3) | sign(-4:3) | ||
+ | |||
+ | ==round, | ||
+ | |||
+ | round(7/18,2) | ||
+ | |||
+ | |||
+ | 7/118 | ||
+ | |||
+ | options(digits=2) | ||
+ | 7/118 | ||
+ | |||
==Pranala Menarik== | ==Pranala Menarik== | ||
* [[R]] | * [[R]] |
Revision as of 08:43, 28 November 2019
Contoh operasi matematika
2 ^ 2
2 * 2
2 / 2
2 + 2
2 - 2
4 * 3 ^ 3
vector -4 s/d 3
-4:3
abs remainder=
absolute
abs(-4:3)
remainder
(-4:3) %% 2
(-4:3) %/% 3
sign
sign(-4:3)
==round,
round(7/18,2)
7/118
options(digits=2) 7/118