Merge branch 'master' of ssh://git.code.sf.net/p/maxima/code
[maxima.git] / share / contrib / implicit_plot.lisp
blob67c1f98f36c33ed52d0fe67f258e8158d11c65e2
1 (defun implicit_plot-fix-up-non-equations (expr)
2 (let ((f #'(lambda (e) (if (and (consp e) (eq (caar e) 'mequal)) e (list '(mequal) e 0)))))
3 (if ($listp expr)
4 (cons '(mlist) (mapcar f (rest expr)))
5 (funcall f expr))))
7 ;; implicit_plot now punts to plot2d
8 (defmfun $implicit_plot (expr &rest optional-args)
9 (let*
10 ((expr-eqs (implicit_plot-fix-up-non-equations expr))
11 (all-args (cons expr-eqs optional-args)))
12 (mtell (intl:gettext "implicit_plot is now obsolete. Calling plot2d instead:~%"))
13 (mtell "~M~%" (cons '($plot2d) all-args))
14 (apply #'$plot2d all-args)))