Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Exercice 15
- mafonction = function(x,y)
- {
- if (y<0)
- {
- y=0
- }
- z = x + log(y)
- z
- }
- print(mafonction(3,-5))
- # Exercice 16
- a = c(1:3)
- b = c(2:4)
- print(a)
- print(a+5)
- print(b)
- print(b-a)
- print(a*b)
- print(a/b)
- print(b**2)
- print(b%%3)
- print(a**b)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement