Advertisement
Guest User

Untitled

a guest
Jan 23rd, 2017
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. >> % THIRD
  2. >> % solve
  3. >> syms x y
  4. >> [x,y]=solve('x^3-2*y=1','x^2+3*y=2');
  5. >> vpa(x,4)
  6.  
  7. ans =
  8.  
  9. 1.137
  10. - 0.902 - 1.113*i
  11. - 0.902 + 1.113*i
  12.  
  13. >> vpa(y,4)
  14.  
  15. ans =
  16.  
  17. 0.2355
  18. 0.8082 - 0.6691*i
  19. 0.8082 + 0.6691*i
  20. %graphic
  21. >> Y1=(-1+X.^3)/2;
  22. >> Y2=(2-X.^2)/3;
  23. >> plot(X,Y1,X,Y2)
  24. >> grid
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement