Changeset 1288
- Timestamp:
- 2015-06-11T20:34:11-07:00 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/f4grobner/mx-grobner.lisp
r1201 r1288 339 339 (defmacro with-parsed-polynomials (((maxima-vars &optional (maxima-new-vars nil new-vars-supplied-p)) 340 340 &key (polynomials nil) 341 342 343 341 (poly-lists nil) 342 (poly-list-lists nil) 343 (value-type nil)) 344 344 &body body 345 345 &aux (vars (gensym)) 346 346 (new-vars (gensym))) 347 347 `(let ((,vars (coerce-maxima-list ,maxima-vars)) 348 348 ,@(when new-vars-supplied-p 349 349 (list `(,new-vars (coerce-maxima-list ,maxima-new-vars))))) 350 350 (coerce-to-maxima 351 351 ,value-type … … 356 356 $poly_elimination_order) 357 357 (let ,(let ((args nil)) 358 (dolist (p polynomials args)359 360 (dolist (p poly-lists args)361 362 (dolist (p poly-list-lists args)363 358 (dolist (p polynomials args) 359 (setf args (cons `(,p (parse-poly ,p ,vars)) args))) 360 (dolist (p poly-lists args) 361 (setf args (cons `(,p (parse-poly-list ,p ,vars)) args))) 362 (dolist (p poly-list-lists args) 363 (setf args (cons `(,p (parse-poly-list-list ,p ,vars)) args)))) 364 364 . ,body)))) 365 365 ,(if new-vars-supplied-p 366 366 `(append ,vars ,new-vars) 367 vars))))367 vars)))) 368 368 369 369
Note:
See TracChangeset
for help on using the changeset viewer.