Michel Coornaert
Strasbourg, France

VoiceOver 10.14

Using SageMath with VoiceOver Mac OS 10.14 Mojave


SageMath, commonly known as Sage, is a free software system that can be used for doing numerical as well as symbolic mathematical computations. It is an accessible open source alternative to Maple, Mathematica, and Matlab. Sage uses a syntax that is very close to the syntax of Python.

Installation


Sage can be downloaded for free on the SageMath Organization Site. For using Sage with VoiceOver, first download the Sage package with .dmg extension corresponding to your system and then install it in the Applications folder of your computer. Before installing Sage, consult the Sage Installation Guide.
Sage is accessible on a Mac computer using the VoiceOver screenreader in local from Terminal (see Using Terminal with VoiceOver).
Terminal is located in the Utilities folder of the Applications folder.
After Terminal is launched, a text field appears for entering a Terminal command.
To launch Sage, assuming that the folder entitled sage-8.8-OSX_10.14.5-x86_64 is in the Applications folder contained in the Macintosh HD folder of the computer, type the Terminal command /Applications/sage-8.8-OSX_10.14.5-x86_64/SageMath/sage . After a moment, a text field appears with the prompt "Sage:", inviting to type a Sage command. Type a Sage command and then press the Return key to display the result.
In order that typing the command sage in Terminal directly launches Sage, do the following:
1. Open in a text editor such as TextEdit a new file
2. Write in this file the following line: export PATH=/Applications/sage-8.8-OSX_10.14.5-x86_64/SageMath:$PATH Warning: there must be a space between "export" and "PATH".
3. Save the file in the User's Home folder under the name : .bash_profile (it will be a hidden file since its name begins with a dot).
4. Quit the text editor and Terminal.
After launching again Terminal, it will suffice to type "sage" and then press the Return key to directly launch Sage.

Computations involving integers

Computations with Sage involving integers
Sage Command Result Description
3* (2^10 -1) 3069 3 times (2 to the 10 minus 1)
factorial(10) 3628800 factorial 10
1055 % 11 10 remainder of the Euclidean division of 1055 by 11
1055//11 95 quotient of the Euclidean division of 1055 by 11
factor(60984) 2^3 * 3^2 * 7 * 11^2 factorisation of 60984
divisors(30) [1, 2, 3, 5, 6, 10, 15, 30] divisors of 30
number_of_divisors(9240) 64 number of divisors of 9240
euler_phi(72) 24 number of positive integers up to 72 that are relatively prime to 72
prime_divisors(168) [2, 3, 7] prime divisors of 168
valuation(18144,3) 4 exponent of 3 in the factorisation of 18144
next_prime(50) 53 smallest prime number greater than 50
previous_prime(168) 167 greatest prime number smaller than 168
next_prime_power(67) 71 smallest prime power greater than 67
previous_prime_power(37) 32 greatest prime power smaller than 37
prime_pi(100) 25 number of primes smaller than 100
2047 in Primes() False 2047 is not a prime
8191 in Primes() True 8191 is a prime
Primes().unrank(10) 31 eleventh prime
Prime_range(13,23) [13,17,19] liste of primes in the interval [13,23)
gcd(114,138) 6 gcd of 114 and 138
lcm(114,138) 2622 lcm of 114 and 138
xgcd(114,138) (6, -6, 5) gcd and Bézout coefficients of (114,138)
binomial(27,5) 80730 number of subsets of cardinality 5 in a set of cardinality 27
sigma(30,4) 872644 sum of the fourth powers of the divisors of 30
  • SageMath Version : 8.8

  • Last update: February 20, 2022