一、下载Sage安装包
Sage下载地址
我选择的是ubuntu 18的,下载的sage-9.4-Ubuntu_18.04-x86_64.tar.bz2这个。
二、安装Sage
解压包
tar xvf sage-9.4-Ubuntu_18.04-x86_64.tar.bz2
解压时间比较久点,解压成功后,有SageMath文件夹出来。
然后cd SageMath
sage/SageMath$ tree -L 1
.
├── COPYING.txt
├── Makefile
├── Pipfile
├── Pipfile.m4
├── README.md
├── VERSION.txt
├── bootstrap
├── build
├── condarc.yml
├── config
├── config.status
├── configure
├── configure.ac
├── docker
├── environment-optional.yml
├── environment.yml
├── local
├── logs
├── m4
├── pkgs
├── pyrightconfig.json
├── sage
├── src
├── tox.ini
└── upstream
9 directories, 16 files
三、测试基本功能
运行sage
sage/SageMath$ ./sage
┌────────────────────────────────────────────────────────────────────┐
│ SageMath version 9.4, Release Date: 2021-08-22 │
│ Using Python 3.9.5. Type "help()" for help. │
└────────────────────────────────────────────────────────────────────┘
sage:
我们做下基本的运算,测试一下基本功能,功能正常。
sage: 100 * 10
1000
sage:
sage:
sage: matrix([[1,2], [3,4]])^(-1)
[ -2 1]
[ 3/2 -1/2]
sage:
sage:
四、相关文档
https://doc.sagemath.org/html/en/a_tour_of_sage/index.html
本文档详细介绍了如何在Ubuntu 18.04上下载、安装和测试SageMath 9.4。首先从官方下载站获取安装包,然后通过tar命令进行解压。解压后进入SageMath目录并运行Sage,通过执行简单的数学运算验证其功能,如矩阵求逆。最后,提供了SageMath的相关学习文档链接,帮助用户进一步了解和使用SageMath。
413

被折叠的 条评论
为什么被折叠?



