# Take a screenshot, and transfer it to a windows partition/drive path?

I currently run Sage math 5.9 through, VirtualBox Fedora linux virtual machine, on Microsoft Windows 7.

I performed the following calculations.

eq1i = integral( sqrt( 1 + 1/(4*x))  )
f(x) = eq1i.subs(x=x)
show(eq1i)
float( f(4) - f(1) )


As you may see, I did show(eq1i), to display the integral result in a more readable format. I'd like to to take a screenshot of my results in Sage, so then I can use an image editing program in Windows, such as MS Paint or Adobe Photoshop, and crop out the result of show(eq1i), result.

edit retag close merge delete

I'm not familiar with moving between the VirtualBox and Windows partitions, but as a quick fix, you could use the cell server: http://sagecell.sagemath.org Here is a permalink: http://sagecell.sagemath.org/?z=eJwVi80KgCAQBu9B7_Add_tF8NrDFGgJkqhF-_itp4FhxmUTsCHcjzvLHgk1l4dgMMKsZAdhxiTgvvMkrKXTYanvUUk2UV2v9FGTLYlp19mTZcwKw-AfNqUaKg==&lang=sage

( 2013-09-03 08:04:30 -0500 )edit

Sort by » oldest newest most voted

In your case, show(eq1i) opens a PDF reader with the formula typeset with LaTeX in a PDF page. I did not try this with VirtualBox, but it is likely there is no PDF reader installed in the linux virtual machine.

If you want to see your formula in a nice format inside the notebook, just click on the "Typeset" button on the top of the notebook page.

Without it, you will get something like

sage: eq1i
sqrt(1/4/x + 1)*x - 1/8*log(sqrt(1/4/x + 1) - 1) + 1/8*log(sqrt(1/4/x + 1) + 1)


With it, you will get something like:

$$\sqrt{\frac{1}{4 \, x} + 1} x - \frac{1}{8} \, \log\left(\sqrt{\frac{1}{4 \, x} + 1} - 1\right) + \frac{1}{8} \, \log\left(\sqrt{\frac{1}{4 \, x} + 1} + 1\right)$$

If you want to have the same result than the one of the PDF page, you can do:

sage: latex(eq1i)


Which will return something like:

\sqrt{\frac{1}{4 \, x} + 1} x - \frac{1}{8} \,
\log\left(\sqrt{\frac{1}{4 \, x} + 1} - 1\right) + \frac{1}{8} \,
\log\left(\sqrt{\frac{1}{4 \, x} + 1} + 1\right)


Just copy-paste it in a LaTeX file and compile it (LaTeX runs on windows).

Otherwise, install linux (or run it from a live USB key), and copy the produced PDF file into your windows partition.

more