特殊:Badtitle/NS100:SAGE

来自Ubuntu中文
Wikibot留言 | 贡献2009年11月17日 (二) 20:33的版本
跳到导航跳到搜索
可打印版本不再受到支持且可能有渲染错误。请更新您的浏览器书签并改用浏览器默认打印功能。

{{#ifexist: :SAGE/zh | | {{#ifexist: SAGE/zh | | {{#ifeq: {{#titleparts:SAGE|1|-1|}} | zh | | }} }} }} {{#ifeq: {{#titleparts:SAGE|1|-1|}} | zh | | }}

Introduction

"Sage is a free open-source mathematics software system licensed under the GPL. It combines the power of many existing open-source packages into a common Python-based interface." "Mission: Creating a viable free open source alternative to Magma, Maple, Mathematica and Matlab." Website: http://www.sagemath.org/

Installation Instructions

Ubuntu (as of 3-5-2009) will install Sagemath Version 3.0.5 while as of the same date the latest version offered by the Sagemath team is 4.1. There are important differences between both, so you might consider downloading a recent version, even if it takes more of your time.

Install from the repositories

Look for the package named sagemath in the Synaptic Package Manager and install it. Alternatively open a terminal and type:

sudo apt-get install sagemath 

Download binaries from their website

Go to the website http://sagemath.org/download.html and pick up a mirror to download. Choose 'Download for Linux', then choose your arquitecture, and then choose the 'tar.gz' package with the word Ubuntu in the name. Installing reduces to unpacking into /opt, and putting a link to the sage executable in /usr/local/bin:

sudo su
cd /opt
tar xvf /path_to_sage_package/sage-?.?.?-linux-ubuntu-...tar.gz
ln -s /opt/sage.?-?-?.../sage /usr/local/bin/sage
sage

Compile from source

You can compile sage from source. You'll be surprised how easy it is, but it may take a long time, and it may fail in some systems. We remit you to their own documentation: http://sagemath.org/download-source.html

Create an icon in the panel

You can add to the panel an icon for starting the sage server. Just select "add new element to the panel", "add new applet" or however it's called in your system, then choose for a new "Launcher" or "Launcher for external applications". In the configuration dialog for the launcher, make sure you select "open in a terminal" and choose "sage -notebook" for the command in GNOME or XFCE. In KDE, choose "sage" for the command and "-notebook" for command line options. You can use "SAGE" for the name and the following for the icon: /opt/sage-directory.../data/extcode/notebook/images/icon48x48.png where "sage-directory..." is the directory where you installed sage.

Getting Started With Sage

Open a terminal and type sage and press enter. The sage command line interface should start up. Wait for the sage prompt to come up. It would looks thus:

sage:

This may take up to a minute depending on your hardware. The first time you use Sage you will be asked to set a password to secure your work.

Choice of Sage Interface: Command Line Or GUI

You have a choice of using Sage either from the command line or from a GUI. In order to use the GUI interface to sage use the sage prompt to type:

notebook()

This will open the GUI interface to Sage which is the well known Firefox web browser. To start work with the GUI interface of Sage click on the link New Worksheet. The rest involves typing your sage commands into the input box and clicking the evaluate button that lies below it. You might also use the program TeXmacs as an interface: http://wiki.sagemath.org/TeXmacs

Help and Documentation

Help for sage is available from: http://www.sagemath.org/help.html A beginner would probably start with the Tutorial at http://www.sagemath.org/doc/tutorial/index.html

Further Reading

At the web page http://www.sagemath.org/help.html you would, by and by, want to look at the Installation Guide and the Reference Manual besides a whole host of documentation at http://www.sagemath.org/doc .