Skip to content

Commit 14b6528

Browse files
committed
Replace meshplot with bouncing ball
1 parent 9ec168f commit 14b6528

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

mathics/web/media/js/inout.js

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ function loadLink() {
187187

188188
function showGallery() {
189189
setQueries([
190-
'(* Calculation *)',
190+
'(**** Calculation ****)',
191191
'Sin[Pi]',
192192
"E ^ (Pi I) (* Euler's famous equation *)",
193193
'N[E, 30] (* 30-digit Numeric approximation of E *)',
@@ -196,34 +196,34 @@ function showGallery() {
196196
'Sum[2 i + 1, {i, 0, 10}] (* Sum of 1st n odd numbers (n+1)**2 *)',
197197
'n = 8; 2 ^ # & /@ Range[0, n] (* Powers of 2 *)',
198198
'Total[%] (* Sum is 2 ^ n - 1 *)',
199-
'(* Symbolic Manipulation *)',
199+
'(**** Symbolic Manipulation ****)',
200200
'Apart[1 / (x^2 + 5x + 6)]',
201201
'Cancel[x / x ^ 2]',
202202
'Expand[(x + y)^ 3]',
203203
'Factor[x ^ 2 + 2 x + 1]',
204204
'Simplify[5*Sin[x]^2 + 5*Cos[x]^2]',
205-
'(* Calculus *)',
205+
'(**** Calculus ****)',
206206
"Sin'[x]",
207207
"Sin''[x]",
208208
'D[Sin[2x] + Log[x] ^ 2, x]',
209209
'Integrate[Tan[x] ^ 5, x]',
210-
'(* Linear Algebra *)',
210+
'(**** Linear Algebra ****)',
211211
'MagicSquare = {{2, 7, 6}, {9, 5, 1}, {4, 3, 8}}; MatrixForm[MagicSquare]',
212212
'LinearSolve[MagicSquare, {1, 1, 1}] // MatrixForm',
213213
'Eigenvalues[MagicSquare]',
214-
'(* Chemical Data *)',
214+
'(**** Chemical Data ***)',
215215
'(* 2nd and 3rd Row of Periodic Table *)',
216216
'Grid[{Table[ElementData[i], {i, 3, 10}], Table[ElementData[i], {i, 11, 18}]}]',
217217
'ListLinePlot[Table[ElementData[z, "MeltingPoint"], {z, 118}]]',
218-
'(* Some graphs *)',
218+
'(**** Some graphs ****)',
219219
'ListPlot[{Sqrt[Range[40]], Log[Range[40, 80]]}]',
220-
'ListLinePlot[Table[Sin[x], {x,-5, 5, 0.5}], Filling->Axis]',
221220
'Plot[{Sin[x], Cos[x], Tan[x]}, {x, -3Pi, 3Pi}]',
222-
'Plot[{Abs[Sin[x]], Abs[Cos[x]]}, {x,0,4 Pi}, Mesh->Full]',
221+
'(* Bouncing Ping-Pong Ball at equal time intervals *)',
222+
'Plot[Abs[Sin[t] / (t + 1)], {t, 0, 4 Pi}, Mesh->Full, PlotRange->{0, 1 / 2}]',
223223
'BarChart[{{1, 2, 3}, {2, 3, 4}}]',
224224
'Graphics[Line[AnglePath[Table[1.7, {50}]]]]',
225225
'Graphics[Table[{EdgeForm[{GrayLevel[0, 0.5]}], Hue[(-11+q+10r)/72, 1, 1, 0.6], Disk[(8-r){Cos[2Pi q/12], Sin [2Pi q/12]}, (8-r)/3]}, {r, 6}, {q, 12}]]',
226-
'(* 3D graphics *)',
226+
'(**** 3D graphics ****)',
227227
'Graphics3D[Sphere[{0, 0, 0}, 1]]',
228228
'Plot3D[Sin[x y], {x, -2, 2}, {y, -2, 2}, Mesh->Full, PlotPoints->21]',
229229
'Plot3D[ Abs[Zeta[x + I y] ], {x, -2, 2}, {y, 2, 20}, PlotPoints->30]',

0 commit comments

Comments
 (0)