Basic Mathematical Operations

Description

In additional to +, -, *, and /, Sage uses ^ or ** for exponentiation. // for integer division, and % for mod; i.e., remainder.

Sage Cell

Code

a = 2^20 % 7
a

Options

None

Tags

Primary Tags: arithmetic

Secondary Tags:

Related Cells

None

Attribute

Permalink:

Author: T. Judson

Date: 28 Jun 2017 14:14

Submitted by: Tom Judson

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License