ASKSAGE: Sage Q&A Forum - Individual question feedhttp://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Wed, 04 Sep 2013 04:43:33 -0500Take a screenshot, and transfer it to a windows partition/drive path?http://ask.sagemath.org/question/10500/take-a-screenshot-and-transfer-it-to-a-windows-partitiondrive-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.Tue, 03 Sep 2013 07:16:08 -0500http://ask.sagemath.org/question/10500/take-a-screenshot-and-transfer-it-to-a-windows-partitiondrive-path/Comment by calc314 for <p>I currently run Sage math 5.9 through, VirtualBox Fedora linux virtual machine, on Microsoft Windows 7.</p>
<p>I performed the following calculations.</p>
<pre><code>eq1i = integral( sqrt( 1 + 1/(4*x)) )
f(x) = eq1i.subs(x=x)
show(eq1i)
float( f(4) - f(1) )
</code></pre>
<p>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.</p>
http://ask.sagemath.org/question/10500/take-a-screenshot-and-transfer-it-to-a-windows-partitiondrive-path/?comment=17075#post-id-17075I'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=sageTue, 03 Sep 2013 08:04:30 -0500http://ask.sagemath.org/question/10500/take-a-screenshot-and-transfer-it-to-a-windows-partitiondrive-path/?comment=17075#post-id-17075Answer by tmonteil for <p>I currently run Sage math 5.9 through, VirtualBox Fedora linux virtual machine, on Microsoft Windows 7.</p>
<p>I performed the following calculations.</p>
<pre><code>eq1i = integral( sqrt( 1 + 1/(4*x)) )
f(x) = eq1i.subs(x=x)
show(eq1i)
float( f(4) - f(1) )
</code></pre>
<p>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.</p>
http://ask.sagemath.org/question/10500/take-a-screenshot-and-transfer-it-to-a-windows-partitiondrive-path/?answer=15412#post-id-15412In 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.
Wed, 04 Sep 2013 04:43:33 -0500http://ask.sagemath.org/question/10500/take-a-screenshot-and-transfer-it-to-a-windows-partitiondrive-path/?answer=15412#post-id-15412