Jump to content
  • entries
    6
  • comments
    0
  • views
    3.498

Μαθηματικές πράξεις στο R


bromptonista

1.126 views

Δεν είπαμε ότι θα ξεκινήσουμε με τα βασικά;

Πρόσθεση:

> 5 + 11
[1] 16

Αφαίρεση:

> 13 - 8
[1] 5

Πολλαπλασιασμός:

> 9 *7
[1] 63

Διαίρεση:

85 / 5
[1] 17

Ύψωση σε δύναμη:

> 2 ^ 3
[1] 8

Τετραγωνική ρίζα:

> sqrt(16)
[1] 4

Λογάριθμοι (log για το φυσικό-νεπέρειο λογάριθμο, log10 για λογάριθμο με βάση 10, log(x,βάση) για λογάριθμο του x με οποιαδήποτε βάση:

> log(1000)
[1] 6.907755
> log10(1000)
[1] 3
> log(1000,3)
[1] 6.28771

Εκθετική συνάρτηση:

> exp(3)
[1] 20.08554

emtoilet

0 Comments


Recommended Comments

There are no comments to display.

Επισκέπτης
Add a comment...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Δημιουργία νέας...

Important Information

By using this site, you agree to our Terms of Use.