Repository navigation
Expand file tree
/
Copy pathamcli.1
More file actions
85 lines (85 loc) · 1.54 KB
/
Copy pathamcli.1
File metadata and controls
85 lines (85 loc) · 1.54 KB
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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
.TH AMCLI 1 "" "AngouriMath" "User Commands"
.SH NAME
amcli \- the AngouriMath terminal, and commands that answer once
.SH SYNOPSIS
.B amcli
.br
.B amcli
.I command
.RI [ argument ...]
.SH DESCRIPTION
With no arguments,
.B amcli
opens the AngouriMath terminal: an F# prompt with AngouriMath loaded.
.PP
With a command,
.B amcli
answers once and exits, without starting F#, so that it can sit in a pipe or a script.
An argument written as
.BR _ ,
or left out, is read from standard input.
.SH COMMANDS
.TP
.BI eval " expr"
Evaluates
.I expr
to a number, a boolean, or a + bi. A rational is written as a decimal.
.TP
.BI simp " expr"
Simplifies
.IR expr .
.TP
.BI fsimp " expr"
Simplifies
.I expr
quickly: the normalisation, without the search.
.TP
.BI diff " var expr"
Differentiates
.I expr
with respect to
.IR var .
.TP
.BI solve " var statement"
Solves
.I statement
for
.IR var ,
one root per line when there are finitely many.
.TP
.BI sub " var value expr"
Substitutes
.I value
for
.I var
in
.IR expr .
.TP
.BI latex " expr"
Writes
.I expr
as LaTeX.
.TP
.BI info " expr"
Describes
.IR expr :
its variables, the derivative and the roots for each, and its stationary points, each classified
by the second derivative test.
.TP
.B help
Lists the commands.
.SH EXIT STATUS
0 for an answer; 1 when the input does not parse or cannot be answered; 2 for a command that
does not exist or is missing an argument.
.SH EXAMPLES
.nf
$ amcli simp "sin(x)^2 + cos(x)^2"
1
$ amcli solve x "x^2 \- 1 = 0"
1
\-1
$ echo "1 + x^2" | amcli diff x
2 * x
.fi
.SH SEE ALSO
https://am.angouri.org