|
From: Raymond T. <toy...@gm...> - 2016-03-31 22:05:46
|
>>>>> "Robert" == Robert Dodier <rob...@gm...> writes:
Robert> On 2016-03-31, Gunter Königsmann <gu...@pe...> wrote:
>> Draw by itself works fine:
>> The same is true for implicit_plot:
>> But after doing this repeating the draw command results in:
>>
>> Maxima encountered a Lisp error:
>>
>> EVAL/APPLY: Too few arguments (6 instead of at least 7) given to
>> PRINT-SQUARE
Robert> Well, since implicit_plot is just one Lisp file, and draw contains a lot
Robert> of Lisp, one could avoid this particular error by putting in suitable CL
Robert> package incantations. It's just necessary to define a symbol package for
Robert> each one, put (in-package :my-package) in each Lisp file, and (I think)
Robert> export the user-visible functions or other symbols. It is just a small
Robert> matter of programming.
Yeah, I think that's a good idea. I will do that for the fft routines.
On the other hand, a quick peek seems to show that implicit_plot and
draw (in gnuplot.lisp) have exactly the same implementation of
print-square; it looks like one copied from the other. It certainly
would be nice to refactor that as well. Don't know how that would
work in practice.
--
Ray
|