Advertisement
Guest User

Untitled

a guest
Aug 18th, 2019
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.68 KB | None | 0 0
  1. (%i1) f(x) := a*x*x + b*x + c;
  2. (%o2) f(x) := a x x + b x + c
  3. (%i2) solve([ f(0) = 1, f(1) = 2, f(2) = 4]);
  4. 1 1
  5. (%o2) [[b = -, a = -, c = 1]]
  6. 2 2
  7.  
  8. (%i3) g(x) := ( x + 1) * x / 2 + 1;
  9. (x + 1) x
  10. (%o3) g(x) := --------- + 1
  11. 2
  12. (%i4) g(3);
  13. (%o4) 7
  14. (%i5) g(4);
  15. (%o5) 11
  16. (%i6) g(5);
  17. (%o6) 16
  18.  
  19. (%i7) expand(g(x) - g(x-1));
  20. (%o7) x
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement