From: Gunter K. <pet...@us...> - 2017-11-13 07:06:38
|
--- ** [bugs:#3353] dlsode creates an"<" wxMaxima's wxmathml.lisp cannot escape** **Status:** open **Group:** None **Created:** Mon Nov 13, 2017 07:06 AM UTC by Gunter Königsmann **Last Updated:** Mon Nov 13, 2017 07:06 AM UTC **Owner:** nobody Maxima normally first outputs everything a command prints to stdout or stderr, then the actual result of the command. The result of the command is converted by wxMaxima's wxmathml.lisp to an XML description of the equation which involves escaping every "<" to an "<". dlsode seems to be able to prevent that introducing a "#<FUNCTION (LAMBDA" in its output stream - which causes wxMaxima to rightly complain that what it got was no valid XML. I cannot find the place in the source that does do this, though. ~~~ load(dlsode); y: [1d0, 0d0, 0d0]; t: 0d0; rtol : 1d-4; atol: [1d-6, 1d-10, 1d-6]; istate: 1; mf: 21; f1: -.04d0*y1 + 1d4*y2*y3; f3: 3d7*y2*y2; fex: [f1, -f1-f3, f3]; t:0d0; tout:.4d0; result :[]; state : dlsode_init(fex, ['t,y1,y2,y3], mf); ~~~ The result of this example is (double-click on the network icon in the bottom right of the maxima window in order to see it): ~~~ <mth> <lbl>(%o14) </lbl> <r> <t>[</t> <r> <t>[</t> <v>f</v> <t>,</t>#<FUNCTION (LAMBDA ( $T $Y1 $Y2 $Y3)) {1002CF341B}> <t>]</t> </r> <t>,</t> <r> <t>[</t> <v>vars</v> <t>,</t> <r> <t>[</t> <v>t</v> <t>,</t> <v>y1</v> <t>,</t> <v>y2</v> <t>,</t> <v>y3</v> <t>]</t> </r> <t>]</t> </r> <t>,</t> <r> <t>[</t> <v>mf</v> <t>,</t> <n>21</n> <t>]</t> </r> <t>,</t> <r> <t>[</t> <v>neq</v> <t>,</t> <n>3</n> <t>]</t> </r> <t>,</t> <r> <t>[</t> <v>lrw</v> <t>,</t> <n>58</n> <t>]</t> </r> <t>,</t> <r> <t>[</t> <v>liw</v> <t>,</t> <n>23</n> <t>]</t> </r> <t>,</t> <r> <t>[</t> <v>rwork</v> <t>,</t> <v>Lisp array [58]</v> <t>]</t> </r> <t>,</t> <r> <t>[</t> <v>iwork</v> <t>,</t> <v>Lisp array [23]</v> <t>]</t> </r> <t>,</t> <r> <t>[</t> <v>fjac</v> <t>,</t>#<FUNCTION (LAMBDA ( $T $Y1 $Y2 $Y3)) {1002CF2C7B}> <t>]</t> </r> <t>]</t> </r> </mth> <PROMPT-P/>(%i15) <PROMPT-S/><mth> <lbl>(%o14) </lbl> <r> <t>[</t> <r> <t>[</t> <v>f</v> <t>,</t>#<FUNCTION (LAMBDA ( $T $Y1 $Y2 $Y3)) {1002CF341B}> <t>]</t> </r> <t>,</t> <r> <t>[</t> <v>vars</v> <t>,</t> <r> <t>[</t> <v>t</v> <t>,</t> <v>y1</v> <t>,</t> <v>y2</v> <t>,</t> <v>y3</v> <t>]</t> </r> <t>]</t> </r> <t>,</t> <r> <t>[</t> <v>mf</v> <t>,</t> <n>21</n> <t>]</t> </r> <t>,</t> <r> <t>[</t> <v>neq</v> <t>,</t> <n>3</n> <t>]</t> </r> <t>,</t> <r> <t>[</t> <v>lrw</v> <t>,</t> <n>58</n> <t>]</t> </r> <t>,</t> <r> <t>[</t> <v>liw</v> <t>,</t> <n>23</n> <t>]</t> </r> <t>,</t> <r> <t>[</t> <v>rwork</v> <t>,</t> <v>Lisp array [58]</v> <t>]</t> </r> <t>,</t> <r> <t>[</t> <v>iwork</v> <t>,</t> <v>Lisp array [23]</v> <t>]</t> </r> <t>,</t> <r> <t>[</t> <v>fjac</v> <t>,</t>#<FUNCTION (LAMBDA ( $T $Y1 $Y2 $Y3)) {1002CF2C7B}> <t>]</t> </r> <t>]</t> </r> </mth> <PROMPT-P/>(%i15) <PROMPT-S/> ~~~ This might not de an actual bug in maxima. But I still need a lisp wizard in order to resolve it. --- Sent from sourceforge.net because max...@li... is subscribed to https://sourceforge.net/p/maxima/bugs/ To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/maxima/admin/bugs/options. Or, if this is a mailing list, you can unsubscribe from the mailing list. |