CoCalc Public Filessupport / 2017-09-15-maxima.sagews
Author: William A. Stein
Description: Jupyter notebook support/2015-06-04-141749-bokeh.ipynb
%md

See http://maxima.sourceforge.net/docs/manual/de/maxima_61.html

Problem 6: Powell singular function



Problem 6: Powell singular function

%maxima
powell(x1,x2,x3,x4) := [x1+10*x2, sqrt(5)*(x3-x4), (x2-2*x3)^2,  sqrt(10)*(x1-x4)^2]

powell(x1,x2,x3,x4):=[x1+10*x2,sqrt(5)*(x3-x4),(x2-2*x3)^2,sqrt(10)*(x1-x4)^2]
%maxima

Error in lines 1-1 Traceback (most recent call last): File "/cocalc/lib/python2.7/site-packages/smc_sagews/sage_server.py", line 995, in execute exec compile(block+'\n', '', 'single') in namespace, locals File "", line 1, in <module> File "/cocalc/lib/python2.7/site-packages/smc_sagews/sage_server.py", line 1034, in execute_with_code_decorators print code_decorator.eval(code, locals=self.namespace), File "/ext/sage/sage-8.0/local/lib/python2.7/site-packages/sage/interfaces/expect.py", line 1305, in eval raise TypeError('error evaluating "%s":\n%s'%(code,s)) TypeError: error evaluating "load("minpack") minpack_lsquares(powell(x1,x2,x3,x4), [x1,x2,x3,x4], [3,-1,0,1])": Error executing code in Maxima CODE: load("minpack"); Maxima ERROR: ;;; ;;; Compiling /ext/sage/sage-8.0/local/share/maxima/5.39.0/share/minpack/minpack-package.lisp. ;;; OPTIMIZE levels: Safety=2, Space=0, Speed=3, Debug=0 ;;; ;;; End of Pass 1. ;;; Finished compiling /ext/sage/sage-8.0/local/share/maxima/5.39.0/share/minpack/minpack-package.lisp. ;;; ;;; ;;; Compiling /ext/sage/sage-8.0/local/share/maxima/5.39.0/share/minpack/lisp/dpmpar.lisp. ;;; OPTIMIZE levels: Safety=2, Space=0, Speed=3, Debug=0 ;;; ;;; End of Pass 1. ;;; Emitting code for MINPACK::DPMPAR. ;;; Finished compiling /ext/sage/sage-8.0/local/share/maxima/5.39.0/share/minpack/lisp/dpmpar.lisp. ;;; loadfile: failed to load /ext/sage/sage-8.0/local/share/maxima/5.39.0/share/minpack/load-minpack.lisp -- an error. To debug this try: debugmode(true);