@@ -66,6 +66,36 @@ int^(1)(sin(x) dx)
6666]
6767` ;
6868
69+ exports [` EULER DERIVATIVE NOTATION D without subscript - should parse as symbol 1` ] = `
70+ D
71+ D
72+ D
73+ ` ;
74+
75+ exports [` EULER DERIVATIVE NOTATION D^2_x f - second derivative 1` ] = `
76+ D(x\\ mapsto D(x\\ mapsto f, x), x)
77+ D((x) |-> D((x) |-> f, x), x)
78+ ["D", ["Function", ["D", ["Function", "f", "x"], "x"], "x"], "x"]
79+ ` ;
80+
81+ exports [` EULER DERIVATIVE NOTATION D_t x - different variable 1` ] = `
82+ D(t\\ mapsto x, t)
83+ D((t) |-> x, t)
84+ ["D", ["Function", "x", "t"], "t"]
85+ ` ;
86+
87+ exports [` EULER DERIVATIVE NOTATION D_x (x^2 + 1) - derivative of expression 1` ] = `
88+ D(x\\ mapsto x^2+1, x)
89+ D((x) |-> x^2 + 1, x)
90+ ["D", ["Function", ["Add", ["Square", "x"], 1], "x"], "x"]
91+ ` ;
92+
93+ exports [` EULER DERIVATIVE NOTATION D_x f - first derivative 1` ] = `
94+ D(x\\ mapsto f, x)
95+ D((x) |-> f, x)
96+ ["D", ["Function", "f", "x"], "x"]
97+ ` ;
98+
6999exports [` EXOTIC INTEGRALS \\ iiint 1` ] = `
70100\\ int\\ int\\ int_{ V } \\ !f(x, y, z)\\ , \\ mathrm{ d } x \\ mathrm{ d } y \\ mathrm{ d } z
71101int_(V)(f(x, y, z) dx dy dz)
@@ -386,6 +416,64 @@ int(sin(x) dx) + 1 === 2
386416]
387417` ;
388418
419+ exports [` LAGRANGE PRIME NOTATION WITH ARGUMENTS \\ sin'(x) - known function with prime 1` ] = `
420+ D(x\\ mapsto\\ sin(x), x)
421+ D((x) |-> sin(x), x)
422+ ["D", ["Function", ["Sin", "x"], "x"], "x"]
423+ ` ;
424+
425+ exports [` LAGRANGE PRIME NOTATION WITH ARGUMENTS f' without arguments - returns Derivative 1` ] = `
426+ f^{ \\prime }
427+ Derivative(f)
428+ ["Derivative", "f"]
429+ ` ;
430+
431+ exports [` LAGRANGE PRIME NOTATION WITH ARGUMENTS f'''(x) - triple prime with argument 1` ] = `
432+ D(x\\ mapsto D(x\\ mapsto D(x\\ mapsto f(x), x), x), x)
433+ D((x) |-> D((x) |-> D((x) |-> f(x), x), x), x)
434+ [
435+ "D",
436+ [
437+ "Function",
438+ [
439+ "D",
440+ ["Function", ["D", ["Function", ["f", "x"], "x"], "x"], "x"],
441+ "x"
442+ ],
443+ "x"
444+ ],
445+ "x"
446+ ]
447+ ` ;
448+
449+ exports [` LAGRANGE PRIME NOTATION WITH ARGUMENTS f''(x) - double prime with argument 1` ] = `
450+ D(x\\ mapsto D(x\\ mapsto f(x), x), x)
451+ D((x) |-> D((x) |-> f(x), x), x)
452+ [
453+ "D",
454+ ["Function", ["D", ["Function", ["f", "x"], "x"], "x"], "x"],
455+ "x"
456+ ]
457+ ` ;
458+
459+ exports [` LAGRANGE PRIME NOTATION WITH ARGUMENTS f'(x) - single prime with argument 1` ] = `
460+ D(x\\ mapsto f(x), x)
461+ D((x) |-> f(x), x)
462+ ["D", ["Function", ["f", "x"], "x"], "x"]
463+ ` ;
464+
465+ exports [` LAGRANGE PRIME NOTATION WITH ARGUMENTS f'(x, y) - multiple arguments uses first as variable 1` ] = `
466+ D(x\\ mapsto f(x, y), x)
467+ D((x) |-> f(x, y), x)
468+ ["D", ["Function", ["f", "x", "y"], "x"], "x"]
469+ ` ;
470+
471+ exports [` LAGRANGE PRIME NOTATION WITH ARGUMENTS g'(t) - different variable 1` ] = `
472+ (g^\\ prime,t)
473+ (Prime(g), t)
474+ ["Pair", ["Prime", "g"], "t"]
475+ ` ;
476+
389477exports [` MULTIPLE INTEGRALS Double integral 1` ] = `
390478\\ int_{ 1 } ^{ 2 } \\ !\\ int\\ int_{ 0 } ^{ 1 } \\ !x^2+y^2\\ , \\ mathrm{ d } x \\ mathrm{ d } y
391479int_(1)^(2)(int_(0)^(1)(x^2 + y^2 dx dy) dx dy)
@@ -501,6 +589,74 @@ int_(1)^(2)(int_(0)^(1)(int_(3)^(4)(x^2 + y^2 + z^2 dx dy dz) dx dy dz) dx
501589]
502590` ;
503591
592+ exports [` NEWTON DOT NOTATION Dot notation with expression 1` ] = `
593+ \\ mathtip{ \\error {\\blacksquare }} { \\in \\text {expression }\\notin \\text {number }} +\\ mathtip{ \\error {\\blacksquare }} { \\in \\text {expression }\\notin \\text {number }}
594+ Error(ErrorCode("incompatible-type", "number", "expression")) + Error(ErrorCode("incompatible-type", "number", "expression"))
595+ [
596+ "Add",
597+ [
598+ "Error",
599+ ["ErrorCode", "incompatible-type", "'number'", "'expression'"]
600+ ],
601+ [
602+ "Error",
603+ ["ErrorCode", "incompatible-type", "'number'", "'expression'"]
604+ ]
605+ ]
606+ ` ;
607+
608+ exports [` NEWTON DOT NOTATION First derivative \\ dot{ x } 1` ] = `
609+ D(t\\ mapsto x, t)
610+ D((t) |-> x, t)
611+ ["D", ["Function", "x", "t"], "t"]
612+ ` ;
613+
614+ exports [` NEWTON DOT NOTATION Fourth derivative \\ ddddot{ z } 1` ] = `
615+ D(t\\ mapsto D(t\\ mapsto D(t\\ mapsto D(t\\ mapsto z, t), t), t), t)
616+ D((t) |-> D((t) |-> D((t) |-> D((t) |-> z, t), t), t), t)
617+ [
618+ "D",
619+ [
620+ "Function",
621+ [
622+ "D",
623+ [
624+ "Function",
625+ [
626+ "D",
627+ ["Function", ["D", ["Function", "z", "t"], "t"], "t"],
628+ "t"
629+ ],
630+ "t"
631+ ],
632+ "t"
633+ ],
634+ "t"
635+ ],
636+ "t"
637+ ]
638+ ` ;
639+
640+ exports [` NEWTON DOT NOTATION Second derivative \\ ddot{ x } 1` ] = `
641+ D(t\\ mapsto D(t\\ mapsto x, t), t)
642+ D((t) |-> D((t) |-> x, t), t)
643+ ["D", ["Function", ["D", ["Function", "x", "t"], "t"], "t"], "t"]
644+ ` ;
645+
646+ exports [` NEWTON DOT NOTATION Third derivative \\ dddot{ y } 1` ] = `
647+ D(t\\ mapsto D(t\\ mapsto D(t\\ mapsto y, t), t), t)
648+ D((t) |-> D((t) |-> D((t) |-> y, t), t), t)
649+ [
650+ "D",
651+ [
652+ "Function",
653+ ["D", ["Function", ["D", ["Function", "y", "t"], "t"], "t"], "t"],
654+ "t"
655+ ],
656+ "t"
657+ ]
658+ ` ;
659+
504660exports [` REAL WORLD INTEGRALS Integral with non standard typesetting 1` ] = `
505661\\ mathrm{ S_ {t }} =\\ mathrm{ S_0 } +\\ int_{ \\mathrm {t_{i }} }^{ \\mathrm {t_{e }} }\\ !G-F\\ , \\ mathrm{ d } t
506662"S_t" === "S_0" + int_("t_i")^("t_e")(-F + "CatalanConstant" dF)
0 commit comments