Applied Extrema for Multivariate Functions
John Travis
Mississippi College
Experimenting with the standard problem of determining the best way to crimp a sheet of aluminum so that the resulting trough can hold the largest possible amount of material.
Click to the left again to hide and once more to show the dynamic interactive window |
The gradient vector The gradient vector |
|
Traceback (click to the left of this block for traceback) ... ValueError: self must be a relation Traceback (most recent call last): File "<stdin>", line 1, in <module> File "_sage_input_20.py", line 10, in <module> exec compile(u'open("___code___.py","w").write("# -*- coding: utf-8 -*-\\n" + _support_.preparse_worksheet_cell(base64.b64decode("IyAgU2luY2Ugc2luKHRoZXRhKT0wIGRvZXMgbm90IHlpZWxkIGEgbWF4aW11bSBmb3IgdGhpcyBwcm9ibGVtLCB3ZSBjYW4gZGl2aWRlIGl0IG91dC4KIyBmeCA9IGZ4L3Npbih0aGV0YSkKc29sbnMgPSBzb2x2ZShbZngsZnRdLCh4LHRoZXRhKSxzb2x1dGlvbl9kaWN0PVRydWUpCnByaW50KGh0bWwoJ1RoZSBjb2xsZWN0aW9uIG9mIHNvbHV0aW9ucyB0byBncmFkKGYpPTAnKSkKIyBzaG93KChzb2xbeF0sc29sW3RdKSBmb3Igc29sIGluIHNvbG5zKQ=="),globals())+"\\n"); execfile(os.path.abspath("___code___.py")) File "", line 1, in <module> File "/tmp/tmp2lSDGG/___code___.py", line 4, in <module> solns = solve([fx,ft],(x,theta),solution_dict=True) File "/home/sageserver/sage-7.5/local/lib/python2.7/site-packages/sage/symbolic/relation.py", line 875, in solve sol_dict=[{eq.left():eq.right()} for eq in sol_list] File "sage/symbolic/expression.pyx", line 2379, in sage.symbolic.expression.Expression.right_hand_side (/home/sageserver/sage-7.5/src/build/cythonized/sage/symbolic/expression.cpp:16619) ValueError: self must be a relation |
|
[2*x*(cos(theta) - 2) + 15, (2*cos(theta)^2 - 2*cos(theta) - 1)*x + 15*cos(theta)] [2*x*(cos(theta) - 2) + 15, (2*cos(theta)^2 - 2*cos(theta) - 1)*x + 15*cos(theta)] |
x = 5 and = 1/3*pi x = 5 and = 1/3*pi |
|