[Maxima] c-code generation
fateman at cs.berkeley.edu
Tue Dec 19 16:06:36 CST 2006
I don't know where the %5 is coming from exactly, but if it is the label
default, you could change it by outchar:temp
or some such setting.
If these variables are set up in optimize, then look at the code and
change % to temp in the source for that function and load that function
into your maxima.
Robert Dodier wrote:
>>Unfortunately, C does not allow to use e.g. %5 as a variable name,
>>so currently I need to run the result through "sed s/%/_/g".
>>Any ideas how to replace the % characters in maxima?
>Try ssubst in the stringproc package. e.g.
>ssubst ("a", "b", "Foobar");
> => Fooaar
>Note that the arguments must be strings, so if you are trying to
>sanitize a symbol I guess you want something like
>ssubst ("pct", "%", string ('%o5));
> => pcto5
>Hope this helps
>Maxima mailing list
>Maxima at math.utexas.edu
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Maxima