Skip to content

Commit 2686a58

Browse files
committed
2023-11-13
1 parent b1652ba commit 2686a58

File tree

2 files changed

+43
-45
lines changed

2 files changed

+43
-45
lines changed

compute-engine/reference/core/index.html

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2578,7 +2578,7 @@ <h3 class="visually-hidden" id="Simplify" tabindex="-1">Simplify</h3><div class=
25782578
</div></div>
25792579
<h3 class="visually-hidden" id="CanonicalForm" tabindex="-1">CanonicalForm</h3><div class="defs"><div class="def"><p class="signature">[&quot;<strong>CanonicalForm</strong>&quot;, <em>expression</em>]</p>
25802580
<p class="signature">[&quot;<strong>CanonicalForm</strong>&quot;, <em>expression</em>, <em>form-1</em>, <em>form-2</em>, …]</p>
2581-
<p>If <em>expression</em> is canonical, this function has no effect.</p>
2581+
<p>If <em>expression</em> is already canonical, this function has no effect.</p>
25822582
<p>If there are no <em>form-n</em> arguments, the expression is transformed to its
25832583
canonical form.</p>
25842584
<p>If some <em>form-n</em> arguments are provided, they indicate one or more
@@ -2612,7 +2612,7 @@ <h3 class="visually-hidden" id="CanonicalForm" tabindex="-1">CanonicalForm</h3><
26122612
<pre><code class="language-json"><span class="hljs-punctuation">[</span><span class="hljs-string">&quot;CanonicalForm&quot;</span><span class="hljs-punctuation">,</span> <span class="hljs-punctuation">[</span><span class="hljs-string">&quot;Add&quot;</span><span class="hljs-punctuation">,</span> <span class="hljs-number">1</span><span class="hljs-punctuation">,</span> <span class="hljs-punctuation">[</span><span class="hljs-string">&quot;Add&quot;</span><span class="hljs-punctuation">,</span> <span class="hljs-number">2</span><span class="hljs-punctuation">,</span> <span class="hljs-number">3</span><span class="hljs-punctuation">]</span><span class="hljs-punctuation">]</span><span class="hljs-punctuation">,</span> <span class="hljs-string">&quot;Flatten&quot;</span><span class="hljs-punctuation">]</span>
26132613
<span class="hljs-comment">// -&gt; [&quot;Add&quot;, 1, 2, 3]</span>
26142614

2615-
<span class="hljs-punctuation">[</span><span class="hljs-string">&quot;CanonicalForm&quot;</span><span class="hljs-punctuation">,</span> <span class="hljs-punctuation">[</span><span class="hljs-string">&quot;Add&quot;</span><span class="hljs-punctuation">,</span> <span class="hljs-number">1</span><span class="hljs-punctuation">,</span> <span class="hljs-punctuation">[</span><span class="hljs-string">&quot;Delimiter&quot;</span><span class="hljs-punctuation">,</span> <span class="hljs-number">2</span><span class="hljs-punctuation">,</span> <span class="hljs-number">3</span><span class="hljs-punctuation">]</span><span class="hljs-punctuation">]</span><span class="hljs-punctuation">,</span> <span class="hljs-string">&quot;Flatten&quot;</span><span class="hljs-punctuation">]</span>
2615+
<span class="hljs-punctuation">[</span><span class="hljs-string">&quot;CanonicalForm&quot;</span><span class="hljs-punctuation">,</span> <span class="hljs-punctuation">[</span><span class="hljs-string">&quot;Add&quot;</span><span class="hljs-punctuation">,</span> <span class="hljs-number">1</span><span class="hljs-punctuation">,</span> <span class="hljs-punctuation">[</span><span class="hljs-string">&quot;Delimiter&quot;</span><span class="hljs-punctuation">,</span> <span class="hljs-punctuation">[</span><span class="hljs-string">&quot;Sequence&quot;</span><span class="hljs-punctuation">,</span> <span class="hljs-number">2</span><span class="hljs-punctuation">,</span> <span class="hljs-number">3</span><span class="hljs-punctuation">]</span><span class="hljs-punctuation">]</span><span class="hljs-punctuation">]</span><span class="hljs-punctuation">,</span> <span class="hljs-string">&quot;Flatten&quot;</span><span class="hljs-punctuation">]</span>
26162616
<span class="hljs-comment">// -&gt; [&quot;Add&quot;, 1, 2, 3]</span>
26172617

26182618
<span class="hljs-punctuation">[</span><span class="hljs-string">&quot;CanonicalForm&quot;</span><span class="hljs-punctuation">,</span> <span class="hljs-punctuation">[</span><span class="hljs-string">&quot;Add&quot;</span><span class="hljs-punctuation">,</span> <span class="hljs-number">1</span><span class="hljs-punctuation">,</span> <span class="hljs-punctuation">[</span><span class="hljs-string">&quot;Sequence&quot;</span><span class="hljs-punctuation">,</span> <span class="hljs-number">2</span><span class="hljs-punctuation">,</span> <span class="hljs-number">3</span><span class="hljs-punctuation">]</span><span class="hljs-punctuation">]</span><span class="hljs-punctuation">,</span> <span class="hljs-string">&quot;Flatten&quot;</span><span class="hljs-punctuation">]</span>
@@ -2662,21 +2662,19 @@ <h3 class="visually-hidden" id="CanonicalForm" tabindex="-1">CanonicalForm</h3><
26622662
<p></p>
26632663
<p>To compare the input from a mathfield with an expected
26642664
answer, you could use:</p>
2665-
<pre><code class="language-js"><span class="hljs-keyword">const</span> correct = ce.<span class="hljs-title function_">box</span>(
2666-
[<span class="hljs-string">&quot;CanonicalForm&quot;</span>, ce.<span class="hljs-title function_">parse</span>(mf.<span class="hljs-property">value</span>, {<span class="hljs-attr">canonical</span>: <span class="hljs-literal">false</span>})], <span class="hljs-string">&quot;Order&quot;</span>)
2665+
<pre><code class="language-js"><span class="hljs-keyword">const</span> correct = ce.<span class="hljs-title function_">parse</span>(mf.<span class="hljs-property">value</span>, {<span class="hljs-attr">canonical</span>: <span class="hljs-string">&quot;Order&quot;</span>})
26672666
.<span class="hljs-title function_">isSame</span>(ce.<span class="hljs-title function_">parse</span>(<span class="hljs-string">&quot;1+x&quot;</span>))
26682667
</code></pre>
26692668
<p>Both <code>1+x</code> and <code>x+1</code> will return <strong>true</strong>, but <code>2-1+x</code> will return <strong>false</strong>.</p>
26702669
<p><strong>Note</strong>: see also the options for the <code>canonical</code> option of <code>ce.parse()</code> and
26712670
<code>ce.box()</code> which can also be used to specify a custom canonical form:</p>
2672-
<pre><code class="language-js"><span class="hljs-keyword">const</span> correct = ce.<span class="hljs-title function_">box</span>(
2673-
ce.<span class="hljs-title function_">parse</span>(mf.<span class="hljs-property">value</span>, {<span class="hljs-attr">canonical</span>: [<span class="hljs-string">&#x27;order&#x27;</span>]}))
2671+
<pre><code class="language-js"><span class="hljs-keyword">const</span> correct = ce.<span class="hljs-title function_">parse</span>(mf.<span class="hljs-property">value</span>, {<span class="hljs-attr">canonical</span>: <span class="hljs-string">&quot;Order&quot;</span>})
26742672
.<span class="hljs-title function_">isSame</span>(ce.<span class="hljs-title function_">parse</span>(<span class="hljs-string">&quot;x+1&quot;</span>))
26752673
</code></pre>
26762674
</div></div>
26772675
<h3 class="visually-hidden" id="N" tabindex="-1">N</h3><div class="defs"><div class="def"><p class="signature">[&quot;<strong>N</strong>&quot;, <em>expression</em>]</p>
26782676
<p>Evaluate to a numerical approximation of the expression.</p>
2679-
<pre><code class="language-json"><span class="hljs-punctuation">[</span><span class="hljs-string">&quot;N&quot;</span><span class="hljs-punctuation">,</span> <span class="hljs-punctuation">[</span><span class="hljs-string">&quot;Pi&quot;</span><span class="hljs-punctuation">]</span><span class="hljs-punctuation">]</span>
2677+
<pre><code class="language-json"><span class="hljs-punctuation">[</span><span class="hljs-string">&quot;N&quot;</span><span class="hljs-punctuation">,</span> <span class="hljs-string">&quot;Pi&quot;</span><span class="hljs-punctuation">]</span>
26802678

26812679
<span class="hljs-comment">// ➔ 3.141592653589793</span>
26822680
</code></pre>
@@ -2694,7 +2692,7 @@ <h3 class="visually-hidden" id="Error" tabindex="-1">Error</h3><div class="defs"
26942692
<h3 class="visually-hidden" id="InverseFunction" tabindex="-1">InverseFunction</h3><div class="defs"><div class="def"><p class="signature">[&quot;<strong>InverseFunction</strong>&quot;, <em>symbol</em>]</p>
26952693
<p>Evaluate to the inverse function of its argument for example <code>Arcsin</code> for <code>Sin</code>.</p>
26962694
<div class='latex'><div class="source">\sin^{-1}(x)</div><div class="display">\[ \sin^{-1}(x) \]</div></div>
2697-
<pre><code class="language-json"><span class="hljs-punctuation">[</span><span class="hljs-punctuation">[</span><span class="hljs-string">&quot;InverseFunction&quot;</span><span class="hljs-punctuation">,</span> <span class="hljs-string">&quot;Sin&quot;</span><span class="hljs-punctuation">]</span><span class="hljs-punctuation">,</span> <span class="hljs-string">&quot;x&quot;</span><span class="hljs-punctuation">]</span><span class="hljs-punctuation">]</span>
2695+
<pre><code class="language-json"><span class="hljs-punctuation">[</span><span class="hljs-punctuation">[</span><span class="hljs-string">&quot;InverseFunction&quot;</span><span class="hljs-punctuation">,</span> <span class="hljs-string">&quot;Sin&quot;</span><span class="hljs-punctuation">]</span><span class="hljs-punctuation">,</span> <span class="hljs-string">&quot;x&quot;</span><span class="hljs-punctuation">]</span>
26982696
</code></pre>
26992697
<p>In the mathematical sense, this is an operator (a function that takes a function
27002698
as an argument and returns a function).</p>

sitemap.xml

Lines changed: 37 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -254,77 +254,77 @@
254254
</url>
255255

256256
<url>
257-
<loc>https://cortexjs.io/cortex/comments/</loc>
257+
<loc>https://cortexjs.io/cortex/</loc>
258258
<lastmod>2023-11-13</lastmod>
259259
<changefreq>monthly</changefreq>
260260
<priority>0.8</priority>
261261
</url>
262262

263263
<url>
264-
<loc>https://cortexjs.io/cortex/goals/</loc>
264+
<loc>https://cortexjs.io/cortex/comments/</loc>
265265
<lastmod>2023-11-13</lastmod>
266266
<changefreq>monthly</changefreq>
267267
<priority>0.8</priority>
268268
</url>
269269

270270
<url>
271-
<loc>https://cortexjs.io/cortex/literals/</loc>
271+
<loc>https://cortexjs.io/cortex/goals/</loc>
272272
<lastmod>2023-11-13</lastmod>
273273
<changefreq>monthly</changefreq>
274274
<priority>0.8</priority>
275275
</url>
276276

277277
<url>
278-
<loc>https://cortexjs.io/cortex/naming/</loc>
278+
<loc>https://cortexjs.io/cortex/implementation/</loc>
279279
<lastmod>2023-11-13</lastmod>
280280
<changefreq>monthly</changefreq>
281281
<priority>0.8</priority>
282282
</url>
283283

284284
<url>
285-
<loc>https://cortexjs.io/cortex/pragmas/</loc>
285+
<loc>https://cortexjs.io/cortex/literals/</loc>
286286
<lastmod>2023-11-13</lastmod>
287287
<changefreq>monthly</changefreq>
288288
<priority>0.8</priority>
289289
</url>
290290

291291
<url>
292-
<loc>https://cortexjs.io/cortex/principles/</loc>
292+
<loc>https://cortexjs.io/cortex/naming/</loc>
293293
<lastmod>2023-11-13</lastmod>
294294
<changefreq>monthly</changefreq>
295295
<priority>0.8</priority>
296296
</url>
297297

298298
<url>
299-
<loc>https://cortexjs.io/cortex/source-code/</loc>
299+
<loc>https://cortexjs.io/cortex/operators/</loc>
300300
<lastmod>2023-11-13</lastmod>
301301
<changefreq>monthly</changefreq>
302302
<priority>0.8</priority>
303303
</url>
304304

305305
<url>
306-
<loc>https://cortexjs.io/cortex/syntax/</loc>
306+
<loc>https://cortexjs.io/cortex/pragmas/</loc>
307307
<lastmod>2023-11-13</lastmod>
308308
<changefreq>monthly</changefreq>
309309
<priority>0.8</priority>
310310
</url>
311311

312312
<url>
313-
<loc>https://cortexjs.io/cortex/</loc>
313+
<loc>https://cortexjs.io/cortex/principles/</loc>
314314
<lastmod>2023-11-13</lastmod>
315315
<changefreq>monthly</changefreq>
316316
<priority>0.8</priority>
317317
</url>
318318

319319
<url>
320-
<loc>https://cortexjs.io/cortex/implementation/</loc>
320+
<loc>https://cortexjs.io/cortex/source-code/</loc>
321321
<lastmod>2023-11-13</lastmod>
322322
<changefreq>monthly</changefreq>
323323
<priority>0.8</priority>
324324
</url>
325325

326326
<url>
327-
<loc>https://cortexjs.io/cortex/operators/</loc>
327+
<loc>https://cortexjs.io/cortex/syntax/</loc>
328328
<lastmod>2023-11-13</lastmod>
329329
<changefreq>monthly</changefreq>
330330
<priority>0.8</priority>
@@ -352,119 +352,119 @@
352352
</url>
353353

354354
<url>
355-
<loc>https://cortexjs.io/compute-engine/guides/symbols/</loc>
355+
<loc>https://cortexjs.io/compute-engine/guides/simplify/</loc>
356356
<lastmod>2023-11-13</lastmod>
357357
<changefreq>monthly</changefreq>
358358
<priority>0.8</priority>
359359
</url>
360360

361361
<url>
362-
<loc>https://cortexjs.io/compute-engine/guides/compiling/</loc>
362+
<loc>https://cortexjs.io/compute-engine/guides/symbols/</loc>
363363
<lastmod>2023-11-13</lastmod>
364364
<changefreq>monthly</changefreq>
365365
<priority>0.8</priority>
366366
</url>
367367

368368
<url>
369-
<loc>https://cortexjs.io/compute-engine/guides/execution-constraints/</loc>
369+
<loc>https://cortexjs.io/compute-engine/guides/augmenting/</loc>
370370
<lastmod>2023-11-13</lastmod>
371371
<changefreq>monthly</changefreq>
372372
<priority>0.8</priority>
373373
</url>
374374

375375
<url>
376-
<loc>https://cortexjs.io/compute-engine/guides/patterns-and-rules/</loc>
376+
<loc>https://cortexjs.io/compute-engine/guides/compiling/</loc>
377377
<lastmod>2023-11-13</lastmod>
378378
<changefreq>monthly</changefreq>
379379
<priority>0.8</priority>
380380
</url>
381381

382382
<url>
383-
<loc>https://cortexjs.io/compute-engine/reference/calculus/</loc>
383+
<loc>https://cortexjs.io/compute-engine/guides/evaluate/</loc>
384384
<lastmod>2023-11-13</lastmod>
385385
<changefreq>monthly</changefreq>
386386
<priority>0.8</priority>
387387
</url>
388388

389389
<url>
390-
<loc>https://cortexjs.io/compute-engine/reference/collections/</loc>
390+
<loc>https://cortexjs.io/compute-engine/guides/execution-constraints/</loc>
391391
<lastmod>2023-11-13</lastmod>
392392
<changefreq>monthly</changefreq>
393393
<priority>0.8</priority>
394394
</url>
395395

396396
<url>
397-
<loc>https://cortexjs.io/compute-engine/reference/functions/</loc>
397+
<loc>https://cortexjs.io/compute-engine/guides/numeric-evaluation/</loc>
398398
<lastmod>2023-11-13</lastmod>
399399
<changefreq>monthly</changefreq>
400400
<priority>0.8</priority>
401401
</url>
402402

403403
<url>
404-
<loc>https://cortexjs.io/compute-engine/reference/linear-algebra/</loc>
404+
<loc>https://cortexjs.io/compute-engine/guides/symbolic-computing/</loc>
405405
<lastmod>2023-11-13</lastmod>
406406
<changefreq>monthly</changefreq>
407407
<priority>0.8</priority>
408408
</url>
409409

410410
<url>
411-
<loc>https://cortexjs.io/compute-engine/reference/statistics/</loc>
411+
<loc>https://cortexjs.io/compute-engine/reference/calculus/</loc>
412412
<lastmod>2023-11-13</lastmod>
413413
<changefreq>monthly</changefreq>
414414
<priority>0.8</priority>
415415
</url>
416416

417417
<url>
418-
<loc>https://cortexjs.io/compute-engine/guides/augmenting/</loc>
418+
<loc>https://cortexjs.io/compute-engine/reference/collections/</loc>
419419
<lastmod>2023-11-13</lastmod>
420420
<changefreq>monthly</changefreq>
421421
<priority>0.8</priority>
422422
</url>
423423

424424
<url>
425-
<loc>https://cortexjs.io/compute-engine/guides/simplify/</loc>
425+
<loc>https://cortexjs.io/compute-engine/reference/complex/</loc>
426426
<lastmod>2023-11-13</lastmod>
427427
<changefreq>monthly</changefreq>
428428
<priority>0.8</priority>
429429
</url>
430430

431431
<url>
432-
<loc>https://cortexjs.io/compute-engine/guides/standard-library/</loc>
432+
<loc>https://cortexjs.io/compute-engine/reference/control-structures/</loc>
433433
<lastmod>2023-11-13</lastmod>
434434
<changefreq>monthly</changefreq>
435435
<priority>0.8</priority>
436436
</url>
437437

438438
<url>
439-
<loc>https://cortexjs.io/compute-engine/guides/symbolic-computing/</loc>
439+
<loc>https://cortexjs.io/compute-engine/reference/core/</loc>
440440
<lastmod>2023-11-13</lastmod>
441441
<changefreq>monthly</changefreq>
442442
<priority>0.8</priority>
443443
</url>
444444

445445
<url>
446-
<loc>https://cortexjs.io/compute-engine/reference/complex/</loc>
446+
<loc>https://cortexjs.io/compute-engine/reference/functions/</loc>
447447
<lastmod>2023-11-13</lastmod>
448448
<changefreq>monthly</changefreq>
449449
<priority>0.8</priority>
450450
</url>
451451

452452
<url>
453-
<loc>https://cortexjs.io/compute-engine/reference/control-structures/</loc>
453+
<loc>https://cortexjs.io/compute-engine/reference/logic/</loc>
454454
<lastmod>2023-11-13</lastmod>
455455
<changefreq>monthly</changefreq>
456456
<priority>0.8</priority>
457457
</url>
458458

459459
<url>
460-
<loc>https://cortexjs.io/compute-engine/reference/logic/</loc>
460+
<loc>https://cortexjs.io/compute-engine/reference/sets/</loc>
461461
<lastmod>2023-11-13</lastmod>
462462
<changefreq>monthly</changefreq>
463463
<priority>0.8</priority>
464464
</url>
465465

466466
<url>
467-
<loc>https://cortexjs.io/compute-engine/reference/sets/</loc>
467+
<loc>https://cortexjs.io/compute-engine/reference/statistics/</loc>
468468
<lastmod>2023-11-13</lastmod>
469469
<changefreq>monthly</changefreq>
470470
<priority>0.8</priority>
@@ -478,49 +478,49 @@
478478
</url>
479479

480480
<url>
481-
<loc>https://cortexjs.io/compute-engine/guides/evaluate/</loc>
481+
<loc>https://cortexjs.io/compute-engine/guides/latex-syntax/</loc>
482482
<lastmod>2023-11-13</lastmod>
483483
<changefreq>monthly</changefreq>
484484
<priority>0.8</priority>
485485
</url>
486486

487487
<url>
488-
<loc>https://cortexjs.io/compute-engine/guides/numeric-evaluation/</loc>
488+
<loc>https://cortexjs.io/compute-engine/guides/patterns-and-rules/</loc>
489489
<lastmod>2023-11-13</lastmod>
490490
<changefreq>monthly</changefreq>
491491
<priority>0.8</priority>
492492
</url>
493493

494494
<url>
495-
<loc>https://cortexjs.io/compute-engine/reference/arithmetic/</loc>
495+
<loc>https://cortexjs.io/compute-engine/guides/standard-library/</loc>
496496
<lastmod>2023-11-13</lastmod>
497497
<changefreq>monthly</changefreq>
498498
<priority>0.8</priority>
499499
</url>
500500

501501
<url>
502-
<loc>https://cortexjs.io/compute-engine/reference/core/</loc>
502+
<loc>https://cortexjs.io/compute-engine/reference/arithmetic/</loc>
503503
<lastmod>2023-11-13</lastmod>
504504
<changefreq>monthly</changefreq>
505505
<priority>0.8</priority>
506506
</url>
507507

508508
<url>
509-
<loc>https://cortexjs.io/compute-engine/guides/domains/</loc>
509+
<loc>https://cortexjs.io/compute-engine/reference/linear-algebra/</loc>
510510
<lastmod>2023-11-13</lastmod>
511511
<changefreq>monthly</changefreq>
512512
<priority>0.8</priority>
513513
</url>
514514

515515
<url>
516-
<loc>https://cortexjs.io/compute-engine/guides/expressions/</loc>
516+
<loc>https://cortexjs.io/compute-engine/guides/domains/</loc>
517517
<lastmod>2023-11-13</lastmod>
518518
<changefreq>monthly</changefreq>
519519
<priority>0.8</priority>
520520
</url>
521521

522522
<url>
523-
<loc>https://cortexjs.io/compute-engine/guides/latex-syntax/</loc>
523+
<loc>https://cortexjs.io/compute-engine/guides/expressions/</loc>
524524
<lastmod>2023-11-13</lastmod>
525525
<changefreq>monthly</changefreq>
526526
<priority>0.8</priority>
@@ -534,14 +534,14 @@
534534
</url>
535535

536536
<url>
537-
<loc>https://cortexjs.io/compute-engine/reference/styling/</loc>
537+
<loc>https://cortexjs.io/compute-engine/reference/special-functions/</loc>
538538
<lastmod>2023-11-13</lastmod>
539539
<changefreq>monthly</changefreq>
540540
<priority>0.8</priority>
541541
</url>
542542

543543
<url>
544-
<loc>https://cortexjs.io/compute-engine/reference/special-functions/</loc>
544+
<loc>https://cortexjs.io/compute-engine/reference/styling/</loc>
545545
<lastmod>2023-11-13</lastmod>
546546
<changefreq>monthly</changefreq>
547547
<priority>0.8</priority>

0 commit comments

Comments
 (0)