Skip to main content\(\newcommand{\N}{\mathbb N} \newcommand{\Z}{\mathbb Z} \newcommand{\Q}{\mathbb Q} \newcommand{\R}{\mathbb R}
\newcommand{\lt}{<}
\newcommand{\gt}{>}
\newcommand{\amp}{&}
\definecolor{fillinmathshade}{gray}{0.9}
\newcommand{\fillinmath}[1]{\mathchoice{\colorbox{fillinmathshade}{$\displaystyle \phantom{\,#1\,}$}}{\colorbox{fillinmathshade}{$\textstyle \phantom{\,#1\,}$}}{\colorbox{fillinmathshade}{$\scriptstyle \phantom{\,#1\,}$}}{\colorbox{fillinmathshade}{$\scriptscriptstyle\phantom{\,#1\,}$}}}
\)
Subsection 4.2 SageMath的编程功能
Subsubsection 4.2.1 求和
Question: How to get \(\sum\limits_{i=1}^{10} a^2\text{.}\)
Question: How to get \(\sum\limits_{i=1}^{n} a^2\) for a random positive integer \(n\text{.}\)
Subsubsection 4.2.2 SageMath交互
这是一个非常好的交互实例. 学生没有学习编程的负担, 专心于数学交互, 有利于数学思维的形成.