Advertisement
JoelSjogren

Untitled

May 13th, 2018
207
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.84 KB | None | 0 0
  1. box% sage
  2. ┌────────────────────────────────────────────────────────────────────┐
  3. │ SageMath version 8.2, Release Date: 2018-05-05 │
  4. │ Type "notebook()" for the browser-based notebook interface. │
  5. │ Type "help()" for help. │
  6. └────────────────────────────────────────────────────────────────────┘
  7. sage: f=x^3-2*x^2-9*x+18
  8. sage: f
  9. x^3 - 2*x^2 - 9*x + 18
  10. sage: f.subs({x: x+2/3})
  11. 1/27*(3*x + 2)^3 - 2/9*(3*x + 2)^2 - 9*x + 12
  12. sage: f.subs({x: x+2/3}).expand()
  13. x^3 - 31/3*x + 308/27
  14. sage:
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement