Guest User

Untitled

a guest
Jul 31st, 2018
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Scilab 0.22 KB | None | 0 0
  1. function y=vekt(a,b)
  2.     if a > b
  3.         c = a
  4.         a = b
  5.         b = c
  6.     end
  7.         r = ones(1,a)
  8.         for i=1:a
  9.             r(i) = b^i
  10.         end
  11.     y=r
  12. endfunction
  13.  
  14.  
  15. function y=hatv(a,b)
  16.     if a > b
  17.         c = a
  18.         a = b
  19.         b = c
  20.     end
  21.     y=a^b
  22. endfunction
Add Comment
Please, Sign In to add comment