@@ -41,25 +41,26 @@ export function Console({children}) {
4141
4242export function ExampleSelector({ onSelect, index }) {
4343 const examples = [
44- {
45- latex: 'e^{i\\ pi}',
46- preamble: ` To create a boxed expression from a LaTeX string, use the \ ` ce.parse()\` function.
47-
48- The \` expr.N()\` function evaluates the expression numerically,
49- including complex numbers.`,
50- template: "N"
51- },
52-
5344 {
5445 latex: "\\ frac{165}{315}",
5546 json: '[ "Divide", 165, 315] ',
56- preamble: `To create a boxed expression from a MathJSON expression, use the \`ce.box()\` function.
47+ preamble: `To create a boxed expression from a MathJSON expression,
48+ use the \` ce.box()\` function.
5749
5850By default expressions are put in canonical form.
5951The canonical form of fractions is their reduced form.`,
6052 template: "as-json"
6153 },
6254
55+ {
56+ latex: 'e^{i\\pi}',
57+ preamble: `To create a boxed expression from a LaTeX string,
58+ use the \` ce.parse()\` function.
59+
60+ The \` expr.N()\` function evaluates the expression numerically,
61+ including complex numbers.`,
62+ template: "N"
63+ },
6364
6465 {
6566 latex: '\\sqrt{6\\sum_{n=1}^{\\infty} \\frac{1}{n^2}}',
@@ -74,10 +75,10 @@ The canonical form of fractions is their reduced form.`,
7475 },
7576
7677 {
77- latex: '\\mathrm{Expand}((a+b)^6 )',
78+ latex: '\\mathrm{Expand}((a+b)^5 )',
7879 preamble: `Symbolically expand an expression.
7980Use the \` latex\` property to get the result in LaTeX format.`,
80- template: 'eval-latex '
81+ template: 'eval-string '
8182 },
8283
8384 {
@@ -90,12 +91,13 @@ approximates a number as a rational.`
9091 {
9192 latex: '\\cos\\left(\\frac{\\pi}{6}\\right)',
9293 preamble: 'Exact trigonometric values',
93- template: 'eval-latex '
94+ template: 'eval-string '
9495 },
9596
9697 {
9798 latex: '\\sin(30\\degree)',
9899 preamble: 'Use degrees unit in trig functions',
100+ template: 'eval-string'
99101 },
100102
101103 {
0 commit comments