pepeIKO

3. lab, 1. zad

Mar 27th, 2015 (edited)
258
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MatLab 0.25 KB | None | 0 0
  1. syms x y
  2. f = sym('factorial(x)')
  3. f = subs(f, x, y)
  4. subs(f, y, 10)
  5. g = sym('10^y')
  6. h = (f + g)/(f - g)
  7. pretty(h)
  8. h = subs(h,y,'15')
  9. pretty(h)
  10. digits(10)
  11. vpa(h)
  12.  
  13. clear
  14.  
  15. f = sym('2^1.5')
  16. pretty(f)
  17. a = single(f)
  18. b = double(f)
  19. razlika = double(b-a)
Add Comment
Please, Sign In to add comment