<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Sage on shocksolution.com</title><link>https://shocksolution.com/tags/sage/</link><description>Recent content in Sage on shocksolution.com</description><generator>Hugo</generator><language>en-us</language><lastBuildDate>Tue, 06 Mar 2012 18:36:26 +0000</lastBuildDate><atom:link href="https://shocksolution.com/tags/sage/index.xml" rel="self" type="application/rss+xml"/><item><title>Partial derivative notation in Sage</title><link>https://shocksolution.com/posts/partial-derivative-notation-in-sage/</link><pubDate>Tue, 06 Mar 2012 18:36:26 +0000</pubDate><guid>https://shocksolution.com/posts/partial-derivative-notation-in-sage/</guid><description>&lt;p&gt;This post will explain the notation used to denote partial derivatives in the output from &lt;a href="http://%3C%3Cwww.sagemath.org/&amp;amp;gt%3E;" title="Sage"&gt;Sage&lt;/a&gt;.  It&amp;rsquo;s confusing at first, but a simple example will make it clear. Here is the input to Sage:&lt;/p&gt;&#10;&lt;div class="code-block"&gt;&#10; &lt;button class="code-copy" type="button" hidden aria-label="Copy code to clipboard"&gt;&#10; &lt;span class="code-copy-label" aria-hidden="true"&gt;Copy&lt;/span&gt;&#10; &lt;/button&gt;&#10; &lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-text" data-lang="text"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;var(&amp;#39;x y&amp;#39;)&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;function(&amp;#39;test&amp;#39;, x, y)&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;show(test(x, y))&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;show(diff(test(x, y), x))&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;show(diff(test(x, y), x, 2))&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;show(diff(test(x, y), y))&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;show(diff(test(x, y), y, 2))&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&#10; &lt;/div&gt;&lt;p&gt;I defined a function of two variables called &lt;strong&gt;test&lt;/strong&gt;.  When you run this in the notebook interface, you get:&lt;/p&gt;</description></item><item><title>Installing Sage 4.7 on CentOS 5</title><link>https://shocksolution.com/posts/installing-sage-4-7-on-centos-5/</link><pubDate>Mon, 07 Nov 2011 23:07:59 +0000</pubDate><guid>https://shocksolution.com/posts/installing-sage-4-7-on-centos-5/</guid><description>&lt;p&gt;I recently upgraded my desktop workstation from an old 32-bit version of Gentoo to 64-bit CentOS 5.  I downloaded and installed the latest version of &lt;a href="http://%3Cwww.sagemath.org/%3E" title="Sage%20home%20page"&gt;Sage&lt;/a&gt;, and the process went smoothly. If you find this post helpful, please check out the &lt;a href="http://%3Cwww.packtpub.com/sage-beginners-guide/book%3E" title="Sage%20Beginner's%20Guide"&gt;Sage Beginner&amp;rsquo;s Guide at Packt Publishing&lt;/a&gt;.  Since I don&amp;rsquo;t use Sage every day, I actually refer to my own book on a regular basis!&lt;/p&gt;&#10;&lt;h2 id="download"&gt;Download&lt;/h2&gt;&#10;&lt;p&gt;Since CentOS is designed to be binary compatible with Red Hat Enterprise Linux, the correct binary to download is &lt;strong&gt;sage-4.7.2-linux-64bit-red_hat_enterprise_linux_server_release_5.6_tikanga-x86_64-Linux.tar.gz&lt;/strong&gt;&lt;/p&gt;</description></item><item><title>Running Sage on Windows with VirtualBox</title><link>https://shocksolution.com/posts/running-sage-on-windows-with-virtualbox/</link><pubDate>Thu, 28 Jul 2011 21:40:40 +0000</pubDate><guid>https://shocksolution.com/posts/running-sage-on-windows-with-virtualbox/</guid><description>&lt;p&gt;The easiest way to run Sage on Windows is with a virtual machine.  Sage is a collection of tools that were primarily developed for UNIX-based operating systems (such as Solaris or Mac OS X)  or UNIX-like operating systems (BSD, Linux, etc).  Since a standard Windows installation lacks many of the features provided by a UNIX-like environment, Sage is packaged as a Linux virtual machine.  You need free virtualization software&amp;ndash;&lt;a href="http://%3Cwww.vmware.com/products/player/%3E" title="VMware%20Player"&gt;VMWare Player&lt;/a&gt; or &lt;a href="http://%3Cwww.virtualbox.org/%3E" title="VirtualBox"&gt;VirtualBox&lt;/a&gt;--to run the virtual machine.  I find VMWare Player easier to work with, but it&amp;rsquo;s not an open-source solution.  VirtualBox is truly free software, but it&amp;rsquo;s also harder to configure.  When you download Sage, you can choose between a .ova file (for VirtualBox) or a zipped VMware virtual machine.  The easiest thing to do is choose the appropriate format for your VM.  However, it&amp;rsquo;s also possible to run the VMware image on Virtualbox, and I&amp;rsquo;ll show you how. If you want to learn more about Sage, check out the &lt;a href="http://%3Cwww.packtpub.com/sage-beginners-guide/book%3E" title="Sage%20Beginner's%20Guide"&gt;Sage Beginner&amp;rsquo;s Guide&lt;/a&gt; from Packt Publishing. Download, install, and run VirtualBox, and then click the &amp;ldquo;New&amp;rdquo; button to get started.  Also, unzip the .zip file that contains the VMware virtual machine. &lt;figure class="ma0 w-75"&gt;&lt;img src="https://shocksolution.com/images/VirtualBox_Manager-300x154.png"&#10;&#9;&#9;&#9;alt="VirtualBox Manager"&gt;&lt;figcaption&gt;&#10;&#9;&#9;&#9;&lt;p&gt;VirtualBox Manager&lt;/p&gt;</description></item><item><title>Sage: open-source mathematical software</title><link>https://shocksolution.com/posts/sage-open-source-mathematical-software/</link><pubDate>Mon, 07 Mar 2011 14:07:19 +0000</pubDate><guid>https://shocksolution.com/posts/sage-open-source-mathematical-software/</guid><description>&lt;p&gt;I&amp;rsquo;ve recently gained a lot of experience with &lt;a href="http://%3Cwww.sagemath.org/%3E" title="Sage"&gt;Sage&lt;/a&gt;, an open-source alternative to MATLAB, Mathematica, Maple, MuPAD, and Magma.  Here are a couple of links to check out:&lt;/p&gt;&#10;&lt;p&gt;&lt;em&gt;&lt;a href="http://%3Cwww.sagenb.org/%3E" title="Sage%20public%20notebook%20servers"&gt;Public notebook servers&lt;/a&gt;--try it online right now!&lt;/em&gt; &lt;a href="http://wiki.sagemath.org/interact" title="Interactive%20Sage%20examples"&gt;Interactive examples with Sage&lt;/a&gt;&lt;/p&gt;&#10;&lt;ul&gt;&#10;&lt;li&gt;&lt;a href="http://sagemath.org/library-publications.html" title="Publications%20citing%20Sage"&gt;Mathematical publications citing Sage&lt;/a&gt;&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;h2 id="sage-vs-mathematica"&gt;Sage vs. Mathematica&lt;/h2&gt;&#10;&lt;p&gt;My experience with mathematical software started my freshman year at the University of Illinois when I signed up for a calculus class that was taught almost entirely with Mathematica.  I grew to love Mathematica&amp;rsquo;s symbolic computation and plotting capabilities, although I found its programming language to be cumbersome.  Once I was no longer a student, Mathematica was no longer an option due to the hefty licensing fees.  With the caveat that I haven&amp;rsquo;t used Mathematica in many years,  I will say that Sage compares very favorably to my experience with Mathematica.  Sage has a notebook interface that allows you to integrate code, results, text, typeset equations, and graphics in an interactive document that can be viewed with any standards-compliant web browser.  I don&amp;rsquo;t know how Sage stacks up against Mathematica in areas of advanced mathematics.  I have heard that Sage is far ahead of Mathematica in number theory, because the lead developer of Sage is a number theorist.&lt;/p&gt;</description></item></channel></rss>