Thanks Scott. It works with Maxima, not with Maple. When I run lyx from the
command line, the console shows the following:
use equation inset
use cell: [char 4 mathalpha][char * mathalpha][sup [char x mathalpha] [char
2 mathalpha]][char + mathalpha][char 8 mathalpha][char * mathalpha][char x
mathalpha][char * mathalpha][char y mathalpha][char + mathalpha][char 4
mathalpha][char * mathalpha][sup [char y mathalpha] [char 2 mathalpha]]
ar: '[char 4 mathalpha][char * mathalpha][sup [char x mathalpha] [char 2
mathalpha]][char + mathalpha][char 8 mathalpha][char * mathalpha][char x
mathalpha][char * mathalpha][char y mathalpha][char + mathalpha][char 4
mathalpha][char * mathalpha][sup [char y mathalpha] [char 2 mathalpha]]'
ms: '4*x^(2) + 8*x*y+4*y^(2)'
checking expr: '4*x^(2) + 8*x*y+4*y^(2)'
calling: mint -i 1 -S -s -q -q
input: '4*x^(2) + 8*x*y+4*y^(2);'
sh: 1: mint: not found
calling: maple -q
input: 'readlib(latex):
`latex/csname_font` := ``:
`latex/latex/matrix` := subs(`[`=`(`, `]`=`)`,eval(`latex/latex/matrix`)):
`latex/latex/*` := subs(`\,`=`\cdot `,eval(`latex/latex/*`)):
`latex/latex/matrix`:= subs(`\\\\\\noalign{\\medskip}` =
`\\\\`,eval(`latex/latex/matrix`)):
latex(factor(4*x^(2) + 8*x*y+4*y^(2)));quit;'
sh: 1: maple: not found
So, two things: something called "mint" is not found, nor is maple.
Nevertheless, if I run Maple from the command line it runs perfectly. Are
there two PATH variables, one for the terminal and one for the Ubuntu
graphic environment? May be this is the problem.
Thanks for your help. Regards.
-------------------------------------------------
Julio Rojas
[email protected]
On Tue, Dec 31, 2013 at 10:10 PM, Scott Kostyshak <[email protected]> wrote:
> On Tue, Dec 31, 2013 at 9:51 AM, Julio Rojas <[email protected]> wrote:
> > Yup, Ubuntu 12.04.
> >
> > Thanks in advance.
>
> Thanks for the example, Julio. This shows me that you're trying to
> call the CAS on an equation array, which I don't think LyX handles
> well. Consider trying an inline math expression without the equals.
> Attached is a LyX file with examples that work and don't work for me
> with Maxima.
>
> Factoring works fine for me with Maxima (see the last example). You
> have to give the command "factor" and do not pass the equals sign
> (otherwise LyX gives this to Maxima and Maxima thinks it's part of the
> expression to evaluate).
>
> Scott
>