Hi Yann,
On Thursday, May 3, 2012 12:30:08 PM UTC+2, Yann Le Du wrote:
Great project! Superb graphics;
Thanks!
I'm a user of asymptote, and can't find the export to latex nor to asymptote that is mentioned in the features.
This is not available as a command in the notebook interface, but as a function TeXForm, e.g. TeXForm[Sqrt[x]] (or, equivalently, Sqrt[x]//TeXForm). Unfortunately, something seems to be broken with displaying the generated Asymptote code in MathJax - I'm getting an "Unexpected text node" error, which is rather weird, as this used to work already. The code is generated correctly, it's just no displayed in the browser for me. I hope I can resolve this. It does work in the console version of Mathics (which you get if you download and install it locally):
>> Graphics[Rectangle[]]//TeXForm
=
. \begin{asy}
. size(5.83333333333cm, 5cm);
. filldraw((0.0,0.0)--(350.0,0.0)--(350.0,350.0)--(0.0,350.0)--cycle, rgb(0, 0, 0), nullpen);
. \end{asy}
The dots just indicate beginnings of new lines and should be removed when copying to Asymptote.
Also, I'm currently installing Mathics with Sage support, so perhaps someone could tell me how to use Sage to solve the following from within Mathics (diesn't work at the moment from within Mathics on the web, but it works in Sage):
f=D[-x * Exp[-2*x^2+1/2],x]
Solve[f==0,x]
Solve doesn't use Sage (yet), it uses SymPy's solve. Maybe that cannot solve this particular type of equation. I will have a look into this. A potential workaround could be FindRoot which finds a solution numerically, although in this case it seems hard to guess a reasonable starting point. FindRoot[f,{x,0.3}] does work, for instance.
Best regards,
Jan