Re: [sage-support] Help with plotting from Mathematica using SageTeX
On Mon, Dec 26, 2011 at 11:55 PM, David Kirkby wrote: > On 26 December 2011 19:51, David Kirkby wrote: >> On 26 December 2011 19:28, William Stein wrote: > >>> What problems? Are there any corresponding open trac tickets or bug >>> reports about your problems? >> >> http://trac.sagemath.org/sage_trac/ticket/10968 >> >> Note that another ticket >> >> http://trac.sagemath.org/sage_trac/ticket/9032 >> >> which was closed (I gave it positive review), was not a complete cure, >> but the patch reduced the number of failures from 12 to 2. > > Correction, > http://trac.sagemath.org/sage_trac/ticket/8495 > fixes some MMA issues, but others remain, and are in #10968. Thanks for reporting all of this and collating and explaining the bugs. I've looked at some, and think I could fix some of them pretty easily.I can't right now, because I'm more busy with other things, and my laptop Mathematica license expired.But once I sort that out, I'll look at these. William > > Note, I found the bug I reported in #8495, which was later opened as > #10968, within 1-2 minutes of testing with the most basic of examples > of Mathematica usage. You can't get much simpler than finding a > numerical approximation of Pi. > > If I understand it correclty, the test failures noted on #8495, which > took 13 months to fix, were introduced much earlier in #3587, but > nobody had noticed. > > I know pexpect has been the source of numerous issues in Sage, so I'm > not about to rely on pexpect when I can use an interface developed for > Mathematica by Wolfram Research, which would undergo far more testing > than the Mathematica inferface we have in Sage, which is an optional > package underging very limited testing. > > > > Dave > > -- > To post to this group, send email to sage-support@googlegroups.com > To unsubscribe from this group, send email to > sage-support+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/sage-support > URL: http://www.sagemath.org -- William Stein Professor of Mathematics University of Washington http://wstein.org -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org
Re: [sage-support] Help with plotting from Mathematica using SageTeX
On 26 December 2011 19:51, David Kirkby wrote: > On 26 December 2011 19:28, William Stein wrote: >> What problems? Are there any corresponding open trac tickets or bug >> reports about your problems? > > http://trac.sagemath.org/sage_trac/ticket/10968 > > Note that another ticket > > http://trac.sagemath.org/sage_trac/ticket/9032 > > which was closed (I gave it positive review), was not a complete cure, > but the patch reduced the number of failures from 12 to 2. Correction, http://trac.sagemath.org/sage_trac/ticket/8495 fixes some MMA issues, but others remain, and are in #10968. Note, I found the bug I reported in #8495, which was later opened as #10968, within 1-2 minutes of testing with the most basic of examples of Mathematica usage. You can't get much simpler than finding a numerical approximation of Pi. If I understand it correclty, the test failures noted on #8495, which took 13 months to fix, were introduced much earlier in #3587, but nobody had noticed. I know pexpect has been the source of numerous issues in Sage, so I'm not about to rely on pexpect when I can use an interface developed for Mathematica by Wolfram Research, which would undergo far more testing than the Mathematica inferface we have in Sage, which is an optional package underging very limited testing. Dave -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org
Re: [sage-support] Help with plotting from Mathematica using SageTeX
On 26 December 2011 19:28, William Stein wrote: > On Mon, Dec 26, 2011 at 11:03 AM, David Kirkby > wrote: >> On 24 December 2011 18:27, Sony wrote: >>> In section 4.2 of the SageLaTeX manual (page 11) explains how to >>> create a LaTeX document with a Mathematica plot using SageLaTeX. I >>> tried the following code but no output is produced. I get an error >>> message "Example3 not found." >> >> I don't think the interface to Mathematica is particularly well >> designed. I've had several problems with it in the past, and gave up >> using it. > > What problems? Are there any corresponding open trac tickets or bug > reports about your problems? http://trac.sagemath.org/sage_trac/ticket/10968 Note that another ticket http://trac.sagemath.org/sage_trac/ticket/9032 which was closed (I gave it positive review), was not a complete cure, but the patch reduced the number of failures from 12 to 2. I know the MMA interface was broken for some time, as the optional packages were not being tested. > I'm not aware of a single aspect of the Sage <--> Mathematica > interface that is version or operating system dependent. I'm not > saying there aren't any, just that I'm not aware of any. > >> I personally think if we were to provide an interface to >> Mathematica, it should be using Wolfram Reserach's Mathlink protocol. >> >> http://www.wolfram.com/solutions/mathlink/ > > A quick google search found a Python interface to Mathematica via > mathlink here, which you can probably easily install into any copy of > Sage: > > http://library.wolfram.com/infocenter/MathSource/585/ > > William Perhaps, but the WRI GUI or jmath text-based front end seems to work well for me. Dave -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org
Re: [sage-support] Help with plotting from Mathematica using SageTeX
On Mon, Dec 26, 2011 at 11:03 AM, David Kirkby wrote: > On 24 December 2011 18:27, Sony wrote: >> In section 4.2 of the SageLaTeX manual (page 11) explains how to >> create a LaTeX document with a Mathematica plot using SageLaTeX. I >> tried the following code but no output is produced. I get an error >> message "Example3 not found." > > I don't think the interface to Mathematica is particularly well > designed. I've had several problems with it in the past, and gave up > using it. What problems? Are there any corresponding open trac tickets or bug reports about your problems? > I think part of the issue is the WRI keep changing Mathematica, so > what works on one version on one operating system might not work on > another. I'm not aware of a single aspect of the Sage <--> Mathematica interface that is version or operating system dependent.I'm not saying there aren't any, just that I'm not aware of any. > I personally think if we were to provide an interface to > Mathematica, it should be using Wolfram Reserach's Mathlink protocol. > > http://www.wolfram.com/solutions/mathlink/ A quick google search found a Python interface to Mathematica via mathlink here, which you can probably easily install into any copy of Sage: http://library.wolfram.com/infocenter/MathSource/585/ William -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org
Re: [sage-support] Help with plotting from Mathematica using SageTeX
On 24 December 2011 18:27, Sony wrote: > In section 4.2 of the SageLaTeX manual (page 11) explains how to > create a LaTeX document with a Mathematica plot using SageLaTeX. I > tried the following code but no output is produced. I get an error > message "Example3 not found." I don't think the interface to Mathematica is particularly well designed. I've had several problems with it in the past, and gave up using it. I think part of the issue is the WRI keep changing Mathematica, so what works on one version on one operating system might not work on another. I personally think if we were to provide an interface to Mathematica, it should be using Wolfram Reserach's Mathlink protocol. http://www.wolfram.com/solutions/mathlink/ I've used that a very small amount in the past myself, but there is quite a nice text-based front end for Mathematica http://robotics.caltech.edu/~radford/jmath/ written by someone else, which allows one to recall commands and edit them. That uses MathLink. -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org
Re: [sage-support] Help with plotting from Mathematica using SageTeX
On Sat, 24 Dec 2011 at 10:27AM -0800, Sony wrote: > \documentclass{article} > \usepackage{sagetex} > \begin{document} > \begin{sagesilent} > mathematica('myplot = Plot[Sin[x], {x, 0, 2 Pi}]') > mathematica('Export["%s/example3.eps", myplot]'%os.getcwd()) > \end{sagesilent} > \includegraphics{example3} > \end{document} What do those commands give you when run inside a Sage session? When I try that on the only computer I can access with Mathematica, the second command fails. Your error message indicates that Mathematica is somehow not creating the .eps file. Dan -- --- Dan Drake - http://mathsci.kaist.ac.kr/~drake --- signature.asc Description: Digital signature