aboutsummaryrefslogtreecommitdiff
path: root/src/input/exsum.input.pamphlet
blob: a6905af11c856032568b959b4badd72e6cc2e54e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
\documentclass{article}
\usepackage{axiom}
\begin{document}
\title{\$SPAD/src/input exsum.input}
\author{The Axiom Team}
\maketitle
\begin{abstract}
\end{abstract}
\eject
\tableofcontents
\eject
<<*>>=

-- Input for page ExSumGeneralFunction
)clear all

sum(k * x**k,k = 1..n)

-- Input for page ExSumInfinite
)clear all

limit( sum(1/(k * (k + 2)),k = 1..n) ,n = %plusInfinity)

-- Input for page ExSumClosedForm
)clear all

s := sum(k**2,k = a..b)
eval(s,[a,b],[1,25])
reduce(+,[i**2 for i in 1..25])

-- Input for page ExSumPolynomial
)clear all

sum(3*k**2/(c**2 + 1) + 12*k/d,k = (3*a)..(4*b))

-- Input for page ExSumListEntriesI
)clear all

[1..15]
reduce(+,expand [1..15])

-- Input for page ExSumApproximateE
)clear all

reduce(+,[1.0/factorial(n) for n in 0..20])

-- Input for page ExSumListEntriesII
)clear all

[n**2 for n in 5..20]
reduce(+,[n**2 for n in 5..20])

-- Input for page ExSumCubes
)clear all

sum(k**3,k = 1..n)
sum(k,k = 1..n) ** 2
@
\eject
\begin{thebibliography}{99}
\bibitem{1} nothing
\end{thebibliography}
\end{document}