Skip to content

Commit 1bcc025

Browse files
committed
Title regularization. gallery param updated
1 parent 72c6381 commit 1bcc025

File tree

10 files changed

+35
-50
lines changed

10 files changed

+35
-50
lines changed

mathics/builtin/arithmetic.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# cython: language_level=3
44

55
"""
6-
Arithmetic Functions
6+
Mathematical Functions
77
88
Basic arithmetic functions, including complex number arithmetic.
99
"""

mathics/builtin/diffeqns.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# -*- coding: utf-8 -*-
33

44
"""
5-
Differential equation solver functions
5+
Differential Equations
66
"""
77

88
import sympy

mathics/builtin/exptrig.py

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22
# -*- coding: utf-8 -*-
33

44
"""
5-
Exponential, trigonometric and hyperbolic functions
5+
Exponential, Trigonometric and Hyperbolic Functions
66
7-
Mathics basically supports all important trigonometric and hyperbolic functions.
8-
Numerical values and derivatives can be computed; however, most special exact values and simplification
9-
rules are not implemented yet.
7+
\Mathics basically supports all important trigonometric and hyperbolic functions.
8+
9+
Numerical values and derivatives can be computed; however, most special exact values and simplification rules are not implemented yet.
1010
"""
1111

1212

@@ -1123,7 +1123,7 @@ class LogisticSigmoid(Builtin):
11231123
<dt>'LogisticSigmoid[$z$]'
11241124
<dd>returns the logistic sigmoid of $z$.
11251125
</dl>
1126-
1126+
11271127
>> LogisticSigmoid[0.5]
11281128
= 0.622459
11291129
@@ -1138,7 +1138,5 @@ class LogisticSigmoid(Builtin):
11381138
"""
11391139

11401140
attributes = ('Listable', 'NumericFunction',)
1141-
1142-
rules = {'LogisticSigmoid[z_?NumberQ]': '1 / (1 + Exp[-z])'}
11431141

1144-
1142+
rules = {'LogisticSigmoid[z_?NumberQ]': '1 / (1 + Exp[-z])'}

mathics/builtin/functional.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# -*- coding: utf-8 -*-
33

44
"""
5-
Functional programming
5+
Functional Programming
66
"""
77

88
from itertools import chain

mathics/builtin/inout.py

Lines changed: 8 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -32,29 +32,17 @@
3232
class UseSansSerif(Predefined):
3333
"""
3434
<dl>
35-
<dt>'$UseSansSerif'
36-
<dd>specifies the font of the web interface.
35+
<dt>'$UseSansSerif'
36+
<dd>controls whether the Web interfaces use a Sans-Serif font.
3737
</dl>
3838
39-
When True, the output in MathMLForm uses SansSerif fonts instead
40-
of the standard ones...
41-
#> System`$UseSansSerif = True; MathMLForm[TableForm[{{a,b},{c,d}}]]
42-
= <math display="block"><mstyle mathvariant="..."><mtable columnalign="center">
43-
. <mtr><mtd columnalign="center"><mi>a</mi></mtd><mtd columnalign="center"><mi>b</mi></mtd></mtr>
44-
. <mtr><mtd columnalign="center"><mi>c</mi></mtd><mtd columnalign="center"><mi>d</mi></mtd></mtr>
45-
. </mtable></mstyle></math>
39+
When set True, the output in MathMLForm uses SansSerif fonts instead
40+
of the standard fonts.
4641
47-
#> System`$UseSansSerif
42+
X> $UseSansSerif
4843
= True
49-
#> System`$UseSansSerif = False;
50-
#> System`$UseSansSerif
51-
= False
44+
X> $UseSansSerif = False
5245
53-
#> MathMLForm[TableForm[{{a,b},{c,d}}]]
54-
= <math display="block"><mtable columnalign="center">
55-
. <mtr><mtd columnalign="center"><mi>a</mi></mtd><mtd columnalign="center"><mi>b</mi></mtd></mtr>
56-
. <mtr><mtd columnalign="center"><mi>c</mi></mtd><mtd columnalign="center"><mi>d</mi></mtd></mtr>
57-
. </mtable></math>
5846
"""
5947
context = "System`"
6048
name = '$UseSansSerif'
@@ -74,8 +62,8 @@ def evaluate(self, evaluation):
7462
class Format(Builtin):
7563
"""
7664
<dl>
77-
<dt>'Format[$expr$]'
78-
<dd>holds values specifying how $expr$ should be printed.
65+
<dt>'Format[$expr$]'
66+
<dd>holds values specifying how $expr$ should be printed.
7967
</dl>
8068
8169
Assign values to 'Format' to control how particular expressions

mathics/builtin/iohooks.py

Lines changed: 14 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,16 @@
1-
1+
"""
2+
The Main Loop
3+
"""
24

35
from mathics.builtin.base import Builtin
46

57

68
class IOHookPreRead(Builtin):
79
'''
810
<dl>
9-
<dt>$PreRead
11+
<dt>$PreRead
1012
<dt> is a global variable whose value, if set, is applied to the \
11-
text or box form of every input expression before it is fed to the parser.
13+
text or box form of every input expression before it is fed to the parser.
1214
<dt>(Not implemented yet)
1315
</dl>
1416
'''
@@ -17,13 +19,13 @@ class IOHookPreRead(Builtin):
1719
class IOHookPre(Builtin):
1820
'''
1921
<dl>
20-
<dt>$Pre
22+
<dt>$Pre
2123
<dt>is a global variable whose value, if set,
2224
is applied to every input expression.
2325
</dl>
2426
2527
Set $Timing$ as the $Pre function, stores the enlapsed time in a variable,
26-
stores just the result in Out[$Line] and print a formated version showing the enlapsed time
28+
stores just the result in Out[$Line] and print a formated version showing the enlapsed time
2729
>> $Pre := (Print["[Processing input...]"];#1)&
2830
>> $Post := (Print["[Storing result...]"]; #1)&
2931
| [Processing input...]
@@ -34,7 +36,7 @@ class IOHookPre(Builtin):
3436
>> 2 + 2
3537
| [Processing input...]
3638
| [Storing result...]
37-
| The result is:
39+
| The result is:
3840
= {..., 4}
3941
>> $Pre = .; $Post = .; $PrePrint = .; $EnlapsedTime = .;
4042
| [Processing input...]
@@ -43,11 +45,11 @@ class IOHookPre(Builtin):
4345
'''
4446
name = "$Pre"
4547

46-
48+
4749
class IOHookPost(Builtin):
4850
'''
4951
<dl>
50-
<dt>$Post
52+
<dt>$Post
5153
<dt>is a global variable whose value, if set,
5254
is applied to every output expression.
5355
</dl>
@@ -58,24 +60,21 @@ class IOHookPost(Builtin):
5860
class IOHookPrePrint(Builtin):
5961
'''
6062
<dl>
61-
<dt>$PrePrint
63+
<dt>$PrePrint
6264
<dt>is a global variable whose value, if set,
6365
is applied to every output expression before it is printed.
64-
</dl>
66+
</dl>
6567
'''
6668
name = "$PrePrint"
6769

6870

6971
class IOHookSyntaxHandler(Builtin):
7072
'''
7173
<dl>
72-
<dt>$SyntaxHandler
74+
<dt>$SyntaxHandler
7375
<dt>is a global variable whose value, if set,
74-
is applied to any input string that is found to contain a syntax error.
76+
is applied to any input string that is found to contain a syntax error.
7577
<dt>(Not implemented yet)
7678
</dl>
7779
'''
7880
name = "$SyntaxHandler"
79-
80-
81-

mathics/builtin/lists.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# -*- coding: utf-8 -*-
33

44
"""
5-
List functions
5+
List Functions
66
"""
77

88

mathics/builtin/recurrence.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# -*- coding: utf-8 -*-
33

44
"""
5-
Recurrence relation solvers
5+
Solving Recurrence Equations
66
"""
77

88

mathics/doc/doc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -693,7 +693,7 @@ def __init__(self):
693693
appendix.append(part)
694694

695695
for title, modules, builtins_by_module, start in [(
696-
"Reference of built-in symbols", builtin.modules,
696+
"Reference of Built-in Symbols", builtin.modules,
697697
builtin.builtins_by_module, True)]: # nopep8
698698
# ("Reference of optional symbols", optional.modules,
699699
# optional.optional_builtins_by_module, False)]:

mathics/web/media/js/inout.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ function showGallery() {
231231
'(**** 3D graphics ****)',
232232
'Graphics3D[Sphere[{0, 0, 0}, 1]]',
233233
'Plot3D[Sin[x y], {x, -2, 2}, {y, -2, 2}, Mesh->Full, PlotPoints->21]',
234-
'Plot3D[ Abs[Zeta[x + I y] ], {x, -2, 2}, {y, 2, 20}, PlotPoints->30]',
234+
'Plot3D[ Abs[Zeta[x + I y] ], {x, -1, 2}, {y, 2, 20}, PlotPoints->30]',
235235
'Graphics3D[Polygon[{{0,0,0}, {0,1,1}, {1,0,0}}]]'
236236
]);
237237
}

0 commit comments

Comments
 (0)