Ask Your Question
1

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

asked 2013-09-03 14:16:08 +0200

bxdin gravatar image

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 flag offensive close merge delete

Comments

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

calc314 gravatar imagecalc314 ( 2013-09-03 15:04:30 +0200 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2013-09-04 11:43:33 +0200

tmonteil gravatar image

updated 2013-09-04 11:56:08 +0200

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.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2013-09-03 14:16:08 +0200

Seen: 433 times

Last updated: Sep 04 '13