特殊:Badtitle/NS100:SAGE:修订间差异
小 创建新页面为 '{{From|https://help.ubuntu.com/community/SAGE}} {{Languages|UbuntuHelp:SAGE}} Parent: Software == Introduction == "Sage is a free open-source mathematic...' |
小无编辑摘要 |
||
(未显示同一用户的1个中间版本) | |||
第1行: | 第1行: | ||
{{From|https://help.ubuntu.com/community/SAGE}} | {{From|https://help.ubuntu.com/community/SAGE}} | ||
{{Languages|UbuntuHelp:SAGE}} | {{Languages|UbuntuHelp:SAGE}} | ||
== Introduction == | == 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." | "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." | ||
第7行: | 第6行: | ||
Website: http://www.sagemath.org/ | Website: http://www.sagemath.org/ | ||
== Installation Instructions == | == 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 ''' | 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 === | === Install from the repositories === | ||
Look for the package named '''sagemath''' in the Synaptic Package Manager and install it. | Look for the package named '''sagemath''' in the Synaptic Package Manager and install it. | ||
第29行: | 第28行: | ||
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: | 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 | 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 == | == 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: | 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: | ||
第34行: | 第39行: | ||
sage: | sage: | ||
</nowiki></pre> | </nowiki></pre> | ||
This may take a | This may take up to a minute depending on your hardware. | ||
The first time you use '' | 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 === | === Choice of Sage Interface: Command Line Or GUI === | ||
You have a choice of using '' | 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: | ||
<pre><nowiki> | <pre><nowiki> | ||
notebook() | notebook() | ||
</nowiki></pre> | </nowiki></pre> | ||
This will open the GUI interface to '' | This will open the GUI interface to ''Sage'' which is the well known Firefox web browser. | ||
To start work with the GUI interface of '' | 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. | 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 [[UbuntuHelp:TeXmacs|TeXmacs]] as an interface: | You might also use the program [[UbuntuHelp:TeXmacs|TeXmacs]] as an interface: | ||
第48行: | 第53行: | ||
=== Help and Documentation === | === Help and Documentation === | ||
Help for ''sage'' is available from: http://www.sagemath.org/help.html | Help for ''sage'' is available from: http://www.sagemath.org/help.html | ||
A beginner would probably | A beginner would probably start with the '''Tutorial''' at http://www.sagemath.org/doc/tutorial/index.html | ||
=== Disadvantages === | |||
While Sage is truly a powerful software, it still lacks some key features as of today (Dec. 1, 2009). Good news it is under development. | |||
Plotting doesn't have a good label function. Axis can not be fine tuned as Matlab. | |||
== Further Reading == | == 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 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 . | ||
---- | ---- | ||
[[category: | [[category:CategoryScience]] | ||
[[category:UbuntuHelp]] | [[category:UbuntuHelp]] |
2010年5月20日 (四) 00:07的最新版本
文章出处: |
{{#if: | {{{2}}} | https://help.ubuntu.com/community/SAGE }} |
点击翻译: |
English {{#ifexist: {{#if: UbuntuHelp:SAGE | UbuntuHelp:SAGE | {{#if: | :}}SAGE}}/af | • {{#if: UbuntuHelp:SAGE|Afrikaans| [[::SAGE/af|Afrikaans]]}}|}} {{#ifexist: {{#if: UbuntuHelp:SAGE | UbuntuHelp:SAGE | {{#if: | :}}SAGE}}/ar | • {{#if: UbuntuHelp:SAGE|العربية| [[::SAGE/ar|العربية]]}}|}} {{#ifexist: {{#if: UbuntuHelp:SAGE | UbuntuHelp:SAGE | {{#if: | :}}SAGE}}/az | • {{#if: UbuntuHelp:SAGE|azərbaycanca| [[::SAGE/az|azərbaycanca]]}}|}} {{#ifexist: {{#if: UbuntuHelp:SAGE | UbuntuHelp:SAGE | {{#if: | :}}SAGE}}/bcc | • {{#if: UbuntuHelp:SAGE|جهلسری بلوچی| [[::SAGE/bcc|جهلسری بلوچی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:SAGE | UbuntuHelp:SAGE | {{#if: | :}}SAGE}}/bg | • {{#if: UbuntuHelp:SAGE|български| [[::SAGE/bg|български]]}}|}} {{#ifexist: {{#if: UbuntuHelp:SAGE | UbuntuHelp:SAGE | {{#if: | :}}SAGE}}/br | • {{#if: UbuntuHelp:SAGE|brezhoneg| [[::SAGE/br|brezhoneg]]}}|}} {{#ifexist: {{#if: UbuntuHelp:SAGE | UbuntuHelp:SAGE | {{#if: | :}}SAGE}}/ca | • {{#if: UbuntuHelp:SAGE|català| [[::SAGE/ca|català]]}}|}} {{#ifexist: {{#if: UbuntuHelp:SAGE | UbuntuHelp:SAGE | {{#if: | :}}SAGE}}/cs | • {{#if: UbuntuHelp:SAGE|čeština| [[::SAGE/cs|čeština]]}}|}} {{#ifexist: {{#if: UbuntuHelp:SAGE | UbuntuHelp:SAGE | {{#if: | :}}SAGE}}/de | • {{#if: UbuntuHelp:SAGE|Deutsch| [[::SAGE/de|Deutsch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:SAGE | UbuntuHelp:SAGE | {{#if: | :}}SAGE}}/el | • {{#if: UbuntuHelp:SAGE|Ελληνικά| [[::SAGE/el|Ελληνικά]]}}|}} {{#ifexist: {{#if: UbuntuHelp:SAGE | UbuntuHelp:SAGE | {{#if: | :}}SAGE}}/es | • {{#if: UbuntuHelp:SAGE|español| [[::SAGE/es|español]]}}|}} {{#ifexist: {{#if: UbuntuHelp:SAGE | UbuntuHelp:SAGE | {{#if: | :}}SAGE}}/fa | • {{#if: UbuntuHelp:SAGE|فارسی| [[::SAGE/fa|فارسی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:SAGE | UbuntuHelp:SAGE | {{#if: | :}}SAGE}}/fi | • {{#if: UbuntuHelp:SAGE|suomi| [[::SAGE/fi|suomi]]}}|}} {{#ifexist: {{#if: UbuntuHelp:SAGE | UbuntuHelp:SAGE | {{#if: | :}}SAGE}}/fr | • {{#if: UbuntuHelp:SAGE|français| [[::SAGE/fr|français]]}}|}} {{#ifexist: {{#if: UbuntuHelp:SAGE | UbuntuHelp:SAGE | {{#if: | :}}SAGE}}/gu | • {{#if: UbuntuHelp:SAGE|ગુજરાતી| [[::SAGE/gu|ગુજરાતી]]}}|}} {{#ifexist: {{#if: UbuntuHelp:SAGE | UbuntuHelp:SAGE | {{#if: | :}}SAGE}}/he | • {{#if: UbuntuHelp:SAGE|עברית| [[::SAGE/he|עברית]]}}|}} {{#ifexist: {{#if: UbuntuHelp:SAGE | UbuntuHelp:SAGE | {{#if: | :}}SAGE}}/hu | • {{#if: UbuntuHelp:SAGE|magyar| [[::SAGE/hu|magyar]]}}|}} {{#ifexist: {{#if: UbuntuHelp:SAGE | UbuntuHelp:SAGE | {{#if: | :}}SAGE}}/id | • {{#if: UbuntuHelp:SAGE|Bahasa Indonesia| [[::SAGE/id|Bahasa Indonesia]]}}|}} {{#ifexist: {{#if: UbuntuHelp:SAGE | UbuntuHelp:SAGE | {{#if: | :}}SAGE}}/it | • {{#if: UbuntuHelp:SAGE|italiano| [[::SAGE/it|italiano]]}}|}} {{#ifexist: {{#if: UbuntuHelp:SAGE | UbuntuHelp:SAGE | {{#if: | :}}SAGE}}/ja | • {{#if: UbuntuHelp:SAGE|日本語| [[::SAGE/ja|日本語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:SAGE | UbuntuHelp:SAGE | {{#if: | :}}SAGE}}/ko | • {{#if: UbuntuHelp:SAGE|한국어| [[::SAGE/ko|한국어]]}}|}} {{#ifexist: {{#if: UbuntuHelp:SAGE | UbuntuHelp:SAGE | {{#if: | :}}SAGE}}/ksh | • {{#if: UbuntuHelp:SAGE|Ripoarisch| [[::SAGE/ksh|Ripoarisch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:SAGE | UbuntuHelp:SAGE | {{#if: | :}}SAGE}}/mr | • {{#if: UbuntuHelp:SAGE|मराठी| [[::SAGE/mr|मराठी]]}}|}} {{#ifexist: {{#if: UbuntuHelp:SAGE | UbuntuHelp:SAGE | {{#if: | :}}SAGE}}/ms | • {{#if: UbuntuHelp:SAGE|Bahasa Melayu| [[::SAGE/ms|Bahasa Melayu]]}}|}} {{#ifexist: {{#if: UbuntuHelp:SAGE | UbuntuHelp:SAGE | {{#if: | :}}SAGE}}/nl | • {{#if: UbuntuHelp:SAGE|Nederlands| [[::SAGE/nl|Nederlands]]}}|}} {{#ifexist: {{#if: UbuntuHelp:SAGE | UbuntuHelp:SAGE | {{#if: | :}}SAGE}}/no | • {{#if: UbuntuHelp:SAGE|norsk| [[::SAGE/no|norsk]]}}|}} {{#ifexist: {{#if: UbuntuHelp:SAGE | UbuntuHelp:SAGE | {{#if: | :}}SAGE}}/oc | • {{#if: UbuntuHelp:SAGE|occitan| [[::SAGE/oc|occitan]]}}|}} {{#ifexist: {{#if: UbuntuHelp:SAGE | UbuntuHelp:SAGE | {{#if: | :}}SAGE}}/pl | • {{#if: UbuntuHelp:SAGE|polski| [[::SAGE/pl|polski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:SAGE | UbuntuHelp:SAGE | {{#if: | :}}SAGE}}/pt | • {{#if: UbuntuHelp:SAGE|português| [[::SAGE/pt|português]]}}|}} {{#ifexist: {{#if: UbuntuHelp:SAGE | UbuntuHelp:SAGE | {{#if: | :}}SAGE}}/ro | • {{#if: UbuntuHelp:SAGE|română| [[::SAGE/ro|română]]}}|}} {{#ifexist: {{#if: UbuntuHelp:SAGE | UbuntuHelp:SAGE | {{#if: | :}}SAGE}}/ru | • {{#if: UbuntuHelp:SAGE|русский| [[::SAGE/ru|русский]]}}|}} {{#ifexist: {{#if: UbuntuHelp:SAGE | UbuntuHelp:SAGE | {{#if: | :}}SAGE}}/si | • {{#if: UbuntuHelp:SAGE|සිංහල| [[::SAGE/si|සිංහල]]}}|}} {{#ifexist: {{#if: UbuntuHelp:SAGE | UbuntuHelp:SAGE | {{#if: | :}}SAGE}}/sq | • {{#if: UbuntuHelp:SAGE|shqip| [[::SAGE/sq|shqip]]}}|}} {{#ifexist: {{#if: UbuntuHelp:SAGE | UbuntuHelp:SAGE | {{#if: | :}}SAGE}}/sr | • {{#if: UbuntuHelp:SAGE|српски / srpski| [[::SAGE/sr|српски / srpski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:SAGE | UbuntuHelp:SAGE | {{#if: | :}}SAGE}}/sv | • {{#if: UbuntuHelp:SAGE|svenska| [[::SAGE/sv|svenska]]}}|}} {{#ifexist: {{#if: UbuntuHelp:SAGE | UbuntuHelp:SAGE | {{#if: | :}}SAGE}}/th | • {{#if: UbuntuHelp:SAGE|ไทย| [[::SAGE/th|ไทย]]}}|}} {{#ifexist: {{#if: UbuntuHelp:SAGE | UbuntuHelp:SAGE | {{#if: | :}}SAGE}}/tr | • {{#if: UbuntuHelp:SAGE|Türkçe| [[::SAGE/tr|Türkçe]]}}|}} {{#ifexist: {{#if: UbuntuHelp:SAGE | UbuntuHelp:SAGE | {{#if: | :}}SAGE}}/vi | • {{#if: UbuntuHelp:SAGE|Tiếng Việt| [[::SAGE/vi|Tiếng Việt]]}}|}} {{#ifexist: {{#if: UbuntuHelp:SAGE | UbuntuHelp:SAGE | {{#if: | :}}SAGE}}/yue | • {{#if: UbuntuHelp:SAGE|粵語| [[::SAGE/yue|粵語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:SAGE | UbuntuHelp:SAGE | {{#if: | :}}SAGE}}/zh | • {{#if: UbuntuHelp:SAGE|中文| [[::SAGE/zh|中文]]}}|}} {{#ifexist: {{#if: UbuntuHelp:SAGE | UbuntuHelp:SAGE | {{#if: | :}}SAGE}}/zh-hans | • {{#if: UbuntuHelp:SAGE|中文(简体)| [[::SAGE/zh-hans|中文(简体)]]}}|}} {{#ifexist: {{#if: UbuntuHelp:SAGE | UbuntuHelp:SAGE | {{#if: | :}}SAGE}}/zh-hant | • {{#if: UbuntuHelp:SAGE|中文(繁體)| [[::SAGE/zh-hant|中文(繁體)]]}}|}} |
{{#ifeq:UbuntuHelp:SAGE|:SAGE|请不要直接编辑翻译本页,本页将定期与来源同步。}} |
{{#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
Disadvantages
While Sage is truly a powerful software, it still lacks some key features as of today (Dec. 1, 2009). Good news it is under development. Plotting doesn't have a good label function. Axis can not be fine tuned as Matlab.
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 .