/
misc_doc.jl
131 lines (88 loc) · 2.02 KB
/
misc_doc.jl
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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
## Documentation not attached to an Symata Head with apprules
# FIXME: All means other things as well
@sjdoc All """
All
a symbol used in options.
"""
@sjdoc Regex """
r\"expr\"
create a regular expression (PCRE). This is a Julia `DataType`.
"""
@sjdoc macros """
macros
If Symata encounters a macro call in input, it first Julia-evaluates all the
arguments then Julia-evaluates the macro and inserts it into the Symata expression
tree. For instance, big numbers and regular expressions are constructed this way.
"""
@sjdoc ans """
ans
holds the result of the most recent evaluation.
"""
@sjdoc Sequence """
Sequence
represents a sequence of arguments to be spliced into function arguments.
"""
@sjexamp(Sequence,
("f(a,b,Sequence(c,d),e,g)", "f(a,b,c,d,e,g)"))
@sjdoc bf """
bf"str"
convert string `str` to a `BigFloat`.
"""
@sjdoc BF """
BF(str)
converts `str` to type `BigFloat`.
"""
@sjdoc bi """
bi"str"
convert string `str` to type `BigInt`.
"""
@sjdoc BI "
bI(n)
converts `n` type `BigInt`.
"
@sjdoc Unicode_Input """
Unicode characters may be input at the Symata REPL just as they are in Julia. Eg. \\alpha [TAB] will enter the greek letter α.
"""
@sjseealso_group(ReturnSymPy,ToSymPy,ToSymata,ShowSymPyDocs)
@sjdoc Reals """
Reals
represents the real numbers.
"""
@sjdoc Integers """
Integers
represents the integer numbers.
"""
@sjdoc Complexes """
Complexes
represents the complex numbers.
"""
@sjdoc Rationals """
Rationals
represents the rational numbers.
"""
@sjdoc Primes """
Primes
represents the prime numbers.
"""
@sjdoc Booleans """
Booleans
represents the set of boolean values, `True` and `False`.
"""
@sjdoc Algebraics """
Algebraics
represents the algebraic numbers.
"""
@sjdoc Repeated """
Repeated
"""
@sjdoc RepeatedNull """
RepeatedNull
"""
@sjdoc Condition """
Condition(cond,expr)
a pattern that matches only if `cond` is true.
"""
@sjdoc Except """
Except(expr)
a pattern than fails to match if `expr` matches.
"""