Re: Colnew Help

Raymond Toy <[email protected]> Thu, 30 Apr 2026 07:45:27 -0700
Newsgroups gmane.comp.mathematics.maxima.general
Message-ID <[email protected]>
Sorry for the delay!

I haven’t looked at your files in detail, but I think it’s really 
beneficial to have tools like this. I doubt I could write some code that 
could use colnew to produce a useful answer without having to read and 
understand all the examples and the code. It is quite dense.

One thing I did notice is that you read a list of equations. Good for 
interactive use, but I think there should also be a more programmatic 
way to do this so that the list of equations was a parameter.

So something like |setup_colnew([list-of-eqns],[vars], otherstuff)|.

On 4/25/26 2:35 PM, Michel Talon wrote:

> Hello,
>
> i have taken some time to write a program to help writing the 
> appropriate incantations to invoke colnew. It is not always obvious, 
> in particular the number of evaluations necessary so that fsub, dfsub, 
> gsub and dgsub only contain the z-variables and numerical data. The 
> smallest error or incoherence between colnew variables, etc. produce 
> very hard to debug lisp errors, hence the utility of  a more automatic 
> program. I have tested this stuff on Example 3 of the colnew 
> documentation, which already reveals problems - notably dfsub has a 
> tendency to contain L and s variables due to insufficient evaluation. 
> I have tried to be quite general,Sorry but it may be that more 
> complicated problems reveal other similar glitches that could be 
> solved similarly. Anyways, i join here 3 files, one is a lisp file 
> containing stuff to analyze the equations and compute necessary colnew 
> variables,  the other a maxima file which loads it and colnew and 
> links the appropriate steps, finally a text file describing a maxima 
> session with this program. One can see it runs very automatically.  If 
> someone finds this interesting i would be happy to see them included 
> in the colnew folder... The maxima file has some quite complex 
> invocations, like define(funmake (gsub, cons(i,var_list)), 
> buildq([gval:apply (g, var_list)], gval[i]))$ which took me some time 
> to discover, and may be of interest for other computations...(note in 
> this case apply(g,var_list)[i] quoted or not does not work, the := 
> operator accepts the subscript [i] but doesn't allow to have a 
> constructed list of arguments, buildq allows to both evaluate gval and 
> not evaluate the subscript).
>
>
> -- 
> Michel Talon
>
>
> _______________________________________________
> Maxima-discuss mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/maxima-discuss
&#8203;

_______________________________________________
Maxima-discuss mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/maxima-discuss