UF6

Group Project 2, Problem 16

UF6
Apr 23rd, 2016
275
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.37 KB | None | 0 0
  1. %matplotlib inline
  2. import matplotlib.pyplot as plt
  3. from sympy import *
  4. init_printing()
  5.  
  6. x = Symbol("x")
  7. y = Symbol("y")
  8. z = Symbol("z")
  9. L = Symbol("L")
  10.  
  11. A=solve([L*2*x-2, L*2*y-6,L*2*z-10,x**2 +y**2 +z**2 -25], [x,y,z,L])
  12.  
  13. A[1][0],A[1][1],A[1][2],A[1][3]
  14.  
  15. (1)**2 +(3)**2 +(5)**2
  16.  
  17. (-1)**2 +(-3)**2 +(-5)**2
  18.  
  19. 2*(1)+6*(3)+10*(5)#min
  20.  
  21. 2*(-1)+6*(-3)+10*(-5)#max
Add Comment
Please, Sign In to add comment