File: implicit_plot.lisp

package info (click to toggle)
maxima 5.49.0-1~exp1
  • links: PTS, VCS
  • area: main
  • in suites:
  • size: 128,980 kB
  • sloc: lisp: 437,854; fortran: 14,665; tcl: 10,143; sh: 4,598; makefile: 2,204; ansic: 447; java: 374; python: 262; perl: 201; xml: 60; awk: 28; sed: 15; javascript: 2
file content (14 lines) | stat: -rw-r--r-- 603 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
(defun implicit_plot-fix-up-non-equations (expr)
  (let ((f #'(lambda (e) (if (and (consp e) (eq (caar e) 'mequal)) e (list '(mequal) e 0)))))
    (if ($listp expr)
      (cons '(mlist) (mapcar f (rest expr)))
      (funcall f expr))))

;; implicit_plot now punts to plot2d
(defmfun $implicit_plot (expr &rest optional-args)
  (let*
    ((expr-eqs (implicit_plot-fix-up-non-equations expr))
     (all-args (cons expr-eqs optional-args)))
    (mtell (intl:gettext "implicit_plot is now obsolete. Calling plot2d instead:~%"))
    (mtell "~M~%" (cons '($plot2d) all-args))
    (apply #'$plot2d all-args)))