3065,6,153,9,1267,8,89,14,562,31,365,53,301,53,298,49,234,44,304,67,598,84,361,49,626,43,232,47,858,43,818,52,230,56,356,50,444,33,560,39,1186,48,27332,42,134,42,127,41,131,44,637,30,1409,48,824,48,454,52,381,58,1053,38,114,40,386,39,416,50,1094,50,1037,45,699,48,517,49,777,47,961,60,672,39,319,50,797,48,336,56,169,32,2113,51,309,50,118,54,184,50,179,47,789,56,129,60,207,58,202,58,355,50,118,54,125,52,199,52,199,50,167,50,197,55,191,27,218,34,1501,47,2303,50,1108,105,293,99,378,82,858,98,311,74,533,87,260,102,146,106,232,98,148,94,59,98,274,100,363,91,577,77,290,95,437,80,641,91,775,101,193,69,593,77,1192,74,1572,78,3586,56,2045,38,1460,55,2332,52,1399,56,1993,30,279,33,570,77,466,66,374,63,604,75,350,83,454,55,951,54,126,56,138,56,142,59,899,60,132,55,600,64,668,71,221,76,334,58,357,59,421,58,223,49,650,67,407,61,547,65,391,57,191,59,246,46,446,46,323,71,319,65,1381,46,190,54,387,52,151,56,80,56,196,67,242,73,188,67,1065,76,599,82,225,80,1216,89,227,92,344,92,299,89,257,90,227,93,343,93,397,90,347,78,224,80,934,92,552,92,269,89,471,93,566,93,268,90,570,82,902,93,238,93,227,90,241,94,235,94,227,91,240,71,202,80,154,76,485,65,404,67,498,71,441,65,141,67,493,59,668,79,529,61,315,72,165,63,492,67,538,65,113,61,144,79,222,81,593,63,2124,67,95,51,762,65,471,83,472,69,141,84,587,67,479,80,373,78,326,73,263,74,794,63,702,67,266,79,351,65,407,69,440,63,144,75,159,74,403,65,1070,55,628,70,170,66,502,71,177,67,230,86,721,69,321,86,707,69,320,76,319,65,382,87,703,99,620,85,132,97,1296,85,1239,105,693,79,88,78,471,79,171,74,472,92,304,83,627,100,420,93,440,89,481,80,524,68,854,100,431,87,683,84,306,86,447,109,354,82,515,97,1909,78,571,70,252,62,141,64,312,53,581,76,242,58,351,68,100,68,804,69,272,65,407,69,440,63,144,65,612,55,938,70,158,66,490,71,282,86,514,69,321,74,1296,70,365,67,265,65,437,65,398,69,435,76,504,57,482,63,207,81,281,65,468,64,884,59,305,55,650,71,164,77,505,59,406,70,352,66,560,65,398,69,431,63,207,65,266,64,884,59,305,71,164,77,503,59,406,55,617,70,352,66,560,64,402,68,443,62,144,64,589,53,502,70,186,85,701,68,321,85,691,68,320,75,504,64,614,67,419,71,458,65,144,67,746,59,505,73,141,88,751,71,321,90,728,75,327,90,742,75,314,78,504,67,823,64,402,68,443,62,144,64,1584,53,502,70,186,85,701,68,321,85,691,68,320,75,504,64,640,66,453,70,490,64,142,66,427,57,498,70,141,74,141,76,198,88,928,70,432,78,485,64,361,76,717,80,349,72,268,83,942,74,367,76,424,64,501,62,453,66,432,70,465,64,144,66,510,57,504,72,142,70,280,87,790,70,327,66,358,70,432,74,465,68,144,70,716,65,508,76,171,74,280,91,790,74,327,91,787,74,320,70,518,42,1005,55,436,59,407,53,533,53,367,55,421,61,619,55,726,44,820,55,387,60,428,44,345,34,265,46,266,38,267,27,331,19,341,37,1010,48,670,25,402,46,431,56,542,32,960,21,571,25,327,27,715,24,98,33,1185,19,2535,76,471,69,431,69,216,73,441,45,279,40,996,29,120,46,333,35,216,38,218,34,577,40,733,42,165,35,743,38,165,40,165,36,950,36,647,36,643,35,632,41,559,35,546,23,2288,31,174,50,206,55,513,48,781,55,75,65,412,55,209,41,1041,24,333,40,333,52,298,43,290,24,741,23,1114,36,280,43,494,21,389,28,273,28,233
_info
{"project":"math-div","branch":"master","version":190,"versionDate":"2024-05-07T09:22:58.000Z","fromVersion":0,"reset":true,"checksumDocs":"431-270370"}
docs.txt
http://khan.github.io/math-input/
Math42 als Website, super zum Lösen von Formeln...
https://www.mathway.com/BasicMath
Editoren:
http://www.imatheq.com/corpsite/index.html
https://www.mathcha.io/
MathJax
MathQuill
https://developer.mozilla.org/de/docs/Web/MathML
https://github.com/Jam3/math-as-code
http://asciimath.org/
https://runarberg.github.io/mathup/
https://silentmatt.com/javascript-expression-evaluator/
http://arthanzel.github.io/evaluatex/
guppy
https://www.mathpapa.com/
https://www.symbolab.com/
-----
### CAS ###
Problemfälle:
* b: "12^(-6)=1/12^6"
-----
nerdamer
sehr groß 800K non-minified
javascript-cas
last updated 2014
coffeequate
http://matthewja.com/Coffeequate
last updated 2016
algebra.js
gibt keine wirkliche equals() funktion
archiviert, last updated 2017
man kann nur durch integer oder fractions teilen, nicht durch expressions
mathsteps, socratic by google
"step-by-step solutions for a subset of high school algebra", including polyomials with basic fractions and radicals."
finde die app nicht im app store
algebrite
fails with (x+2)(y+2) (needs *)
simplify very expensive for negative exponents?
https://github.com/Khan/KAS -> 2018
https://www-fourier.ujf-grenoble.fr/~parisse/giac.html
init.ls
(function(){
return function(){
return window.MathDiv = inc("mathDiv/mathDiv");
};
})();
mathDiv/_t.ls
(function(){
return {
oopsWrong: {
de: "Ups, deine Lösung war falsch.",
en: "Oops, your answer was incorrect.",
fr: "Oups… ta réponse n'était pas correcte.",
es: "¡Ups! Tu respuesta es incorrecta.",
pt: "Ops! Sua resposta está incorreta."
},
tryAgain: {
de: "Nochmal probieren",
en: "Try again",
fr: "Essaie encore",
es: "Volver a intentar",
pt: "Tentar de novo"
},
solve: {
de: "Lösen",
en: "Solve",
fr: "Voir la solution",
es: "Ver solución",
pt: "Ver solução"
},
check: {
de: "Prüfen",
en: "Check",
fr: "Vérifier",
es: "Verificar",
pt: "Verificar"
}
};
})();
mathDiv/adjustLayout/adjust.ls
(function(){
return function(o){
return function(){
var m;
m = inc("mergeNeighbours/mergeNeighbours");
m(o, "mn");
m(o, "mspace");
m(o, "mtext");
inc("removeMnMoverSpace/remove")(o);
inc("adjustSizes/adjust")(o);
inc("adjustBracketSize/adjust")(o);
inc("adjustCenter/adjust")(o);
inc("adjustWidth/adjust")(o);
return inc("adjustMSupSpacing/adjust")(o);
};
};
})();
mathDiv/adjustLayout/adjustBlinkerWidths/decrease.ls
(function(){
return function(o){
var i$, ref$, len$, msqrt, results$ = [];
for (i$ = 0, len$ = (ref$ = o.div.findAll(".msqrt")).length; i$ < len$; ++i$) {
msqrt = ref$[i$];
msqrt.blinkerEnd.css({
width: "0px"
});
results$.push(msqrt.mrow.blinkerEnd.css({
width: "0px"
}));
}
return results$;
};
})();
mathDiv/adjustLayout/adjustBlinkerWidths/increase.ls
(function(){
return function(o){
var i$, ref$, len$, el, results$ = [];
for (i$ = 0, len$ = (ref$ = o.div.findAll(".msqrt, .mroot")).length; i$ < len$; ++i$) {
el = ref$[i$];
el.blinkerEnd.css({
width: "5px"
});
results$.push(el.mrow.blinkerEnd.css({
width: "15px"
}));
}
return results$;
};
})();
mathDiv/adjustLayout/adjustBracketSize/adjust.ls
(function(){
return function(o){
var i$, ref$, len$, el, results$ = [];
for (i$ = 0, len$ = (ref$ = o.div.findAll(".mfenced").reverse()).length; i$ < len$; ++i$) {
el = ref$[i$];
results$.push(el.scale());
}
return results$;
};
})();
mathDiv/adjustLayout/adjustCenter/adjust.ls
(function(){
return function(o){
var i$, ref$, len$, el, results$ = [];
inc("adjustChildrenElements/adjust")(o, o.div);
for (i$ = 0, len$ = (ref$ = o.div.findAll(".center")).length; i$ < len$; ++i$) {
el = ref$[i$];
results$.push(inc("adjustChildrenElements/adjust")(o, el));
}
return results$;
};
})();
mathDiv/adjustLayout/adjustCenter/adjustChildrenElements/adjust.ls
(function(){
return function(o, div){
var maxCenter, i$, ref$, len$, el, center, results$ = [];
maxCenter = 0;
for (i$ = 0, len$ = (ref$ = div.childrenAll()).length; i$ < len$; ++i$) {
el = ref$[i$];
if (el.getCenter) {
center = el.getCenter();
maxCenter = Math.max(maxCenter, center);
}
}
inc("showDebugCenterDiv/show")(o, div);
for (i$ = 0, len$ = (ref$ = div.childrenAll()).length; i$ < len$; ++i$) {
el = ref$[i$];
if (el.getCenter) {
center = el.getCenter();
el.css({
marginTop: maxCenter - center + "px"
});
results$.push(inc("showDebugCenterDiv/show")(o, el));
}
}
return results$;
};
})();
mathDiv/adjustLayout/adjustCenter/adjustChildrenElements/showDebugCenterDiv/show.ls
(function(){
return function(o, el){
var center, ref$;
if (o.debug && el.getCenter) {
center = el.getCenter();
if (!el.debugCenterDiv) {
el.append(el.debugCenterDiv = Div({
position: "absolute",
left: 0,
height: "1px",
width: "1px",
backgroundColor: "red"
}));
}
return (ref$ = el.debugCenterDiv) != null ? ref$.css({
top: center + "px"
}) : void 8;
}
};
})();
mathDiv/adjustLayout/adjustMSupSpacing/adjust.ls
(function(){
return function(o){
var i$, ref$, len$, msup, defaultValue, ref1$, ref2$, ref3$, results$ = [];
for (i$ = 0, len$ = (ref$ = o.div.findAll(".msup")).length; i$ < len$; ++i$) {
msup = ref$[i$];
defaultValue = "-3px";
results$.push(msup.wrapper.mrow2.parent().css({
marginLeft: (ref1$ = _.last(msup.wrapper.mrow1.getElements())) != null && ref1$.hasClass("mfenced")
? "-1px"
: (ref2$ = _.last(msup.wrapper.mrow1.getElements())) != null && ref2$.hasClass("mgap")
? "-1px"
: (ref3$ = _.first(msup.wrapper.mrow2.getElements())) != null && ref3$.hasClass("mgap") ? "-1px" : defaultValue
}));
}
return results$;
};
})();
mathDiv/adjustLayout/adjustSizes/adjust.ls
(function(){
return function(o){
var i$, ref$, len$, el, results$ = [];
for (i$ = 0, len$ = (ref$ = o.div.findAll(".adjustSize")).length; i$ < len$; ++i$) {
el = ref$[i$];
results$.push(el.adjustSize());
}
return results$;
};
})();
mathDiv/adjustLayout/adjustWidth/adjust-wip.ls
(function(){
return function(o){
var startDiv, endDiv, distanceToEdge, offsetRight, ref$, diff;
startDiv = o.div.startDiv;
endDiv = o.div.endDiv;
distanceToEdge = body.width() - endDiv.offset().right;
if (distanceToEdge - 40 < 0) {
o.maxWidth == null && (o.maxWidth = body.width() - startDiv.offset().left - 30);
o.div.css({
overflowX: "auto",
justifyContent: "flex-start",
pointerEvents: "auto",
maxWidth: o.mode !== "calculator" ? o.maxWidth + "px" : void 8
});
} else {
o.div.css({
overflowX: "",
maxWidth: ""
});
inc("/mathDiv/calcSourceDiv/setCenterAttribute/set")(o);
}
offsetRight = ((ref$ = o.cursorElement) != null ? ref$.offset().left : void 8) - o.div.offset().left;
if (offsetRight == null || _.isNaN(offsetRight)) {
offsetRight = 0;
}
diff = offsetRight - o.div.offsetWidth;
if (diff + 10 > 0) {
return o.div.scrollLeft += diff + 13;
}
};
})();
mathDiv/adjustLayout/adjustWidth/adjust.ls
(function(){
return function(o){
var end, start, w, offsetRight, ref$, diff;
end = o.div.endDiv;
start = o.div.startDiv;
w = end && start ? (end != null ? end.offset().left : void 8) - (start != null ? start.offset().left : void 8) : 0;
if (w + 40 > body.width()) {
o.div.css({
overflowX: "auto",
justifyContent: "flex-start",
pointerEvents: "auto",
maxWidth: o.mode !== "calculator" ? body.width() - 40 + "px" : void 8
});
} else {
o.div.css({
overflowX: "",
maxWidth: ""
});
inc("/mathDiv/calcSourceDiv/setCenterAttribute/set")(o);
}
offsetRight = ((ref$ = o.cursorElement) != null ? ref$.offset().left : void 8) - o.div.offset().left;
if (offsetRight == null || _.isNaN(offsetRight)) {
offsetRight = 0;
}
diff = offsetRight - o.div.offsetWidth;
if (diff + 10 > 0) {
return o.div.scrollLeft += diff + 13;
}
};
})();
mathDiv/adjustLayout/mergeNeighbours/merge/merge.ls
(function(){
return function(o, el1, el2){
var el1Last;
el1Last = _.last(el1.findAll(".char"));
if (o.cursorElement === el2.firstChild) {
el1Last.startCursor();
}
el1Last.after(el2.findAll(".char"));
return el2.remove();
};
})();
mathDiv/adjustLayout/mergeNeighbours/mergeNeighbours.ls
(function(){
return function(o, tagName){
var i$, ref$, len$, el, el2, results$ = [];
for (i$ = 0, len$ = (ref$ = o.div.findAll("." + tagName)).length; i$ < len$; ++i$) {
el = ref$[i$];
el2 = el.nextSibling;
if (el2 != null && el2.hasClass(tagName)) {
inc("merge/merge")(o, el, el2);
results$.push(inc(THISFILE)(o, tagName));
}
}
return results$;
};
})();
mathDiv/adjustLayout/removeMnMoverSpace/remove.ls
(function(){
return function(o){
var i$, ref$, len$, el, el2, ref1$, results$ = [];
for (i$ = 0, len$ = (ref$ = o.div.findAll(".mover")).length; i$ < len$; ++i$) {
el = ref$[i$];
el2 = el.previousSibling;
if (el2 != null && el2.hasClass("mn")) {
el2.css({
paddingRight: 0
});
if ((ref1$ = el.findFirst(".mn")) != null) {
ref1$.css({
paddingLeft: 0
});
}
results$.push(el.wrapper.over.firstChild.css({
left: 0
}));
}
}
return results$;
};
})();
mathDiv/calcCorrectValue/calc.ls
(function(){
return function(o){
return function(){
var gapValues, res$, i$, ref$, len$, gap, s, t;
res$ = [];
for (i$ = 0, len$ = (ref$ = o.gaps).length; i$ < len$; ++i$) {
gap = ref$[i$];
res$.push(gap.value || gap.getValue());
}
gapValues = res$;
o.value = _.replaceAll(o.value, //, "");
o.value = _.replaceAll(o.value, "", "");
s = "";
for (i$ = 0, len$ = (ref$ = o.value.split(/(.*?<\/gap>)/)).length; i$ < len$; ++i$) {
t = ref$[i$];
if (_.startsWith(t, "/, "");
o.value = _.replaceAll(o.value, "", "");
o.value = _.replaceAll(o.value, //, "");
gapIndex = -1;
for (i$ = 0, len$ = (ref$ = o.value.split(/(.*?<\/gap>)/)).length; i$ < len$; ++i$) {
t = ref$[i$];
if (_.startsWith(t, "")) {
gapIndex++;
solutions2 = [];
for (j$ = 0, len1$ = (ref1$ = gapSolutions[gapIndex]).length; j$ < len1$; ++j$) {
sol = ref1$[j$];
for (k$ = 0, len2$ = solutions.length; k$ < len2$; ++k$) {
s = solutions[k$];
solutions2.push(s + sol);
}
}
solutions = solutions2;
} else {
for (j$ = 0, len1$ = solutions.length; j$ < len1$; ++j$) {
i = j$;
solutions[i] += t;
}
}
}
return solutions;
function fn$(c){
return _.replaceAll(c.mathData.asciimath, /\s+/g, "");
}
};
};
})();
mathDiv/calcSourceDiv/_external/ascii2mathml.js
// Transpiled using https://babeljs.io/repl
"use strict";
var _slicedToArray = function () { function sliceIterator(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"]) _i["return"](); } finally { if (_d) throw _e; } } return _arr; } return function (arr, i) { if (Array.isArray(arr)) { return arr; } else if (Symbol.iterator in Object(arr)) { return sliceIterator(arr, i); } else { throw new TypeError("Invalid attempt to destructure non-iterable instance"); } }; }();
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
!function (e) {
if ("object" == (typeof exports === "undefined" ? "undefined" : _typeof(exports)) && "undefined" != typeof module) module.exports = e();else if ("function" == typeof define && define.amd) define([], e);else {
("undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof self ? self : this).ascii2mathml = e();
}
}(function () {
return function e(t, n, r) {
function i(l, c) {
if (!n[l]) {
if (!t[l]) {
var s = "function" == typeof require && require;if (!c && s) return s(l, !0);if (o) return o(l, !0);var a = new Error("Cannot find module '" + l + "'");throw a.code = "MODULE_NOT_FOUND", a;
}var u = n[l] = { exports: {} };t[l][0].call(u.exports, function (e) {
var n = t[l][1][e];return i(n || e);
}, u, u.exports, e, t, n, r);
}return n[l].exports;
}for (var o = "function" == typeof require && require, l = 0; l < r.length; l++) {
i(r[l]);
}return i;
}({ 1: [function (e, t, n) {
"use strict";
Object.defineProperty(n, "__esModule", { value: !0 }), n.default = function e(t, n) {
if ("object" == (typeof t === "undefined" ? "undefined" : _typeof(t))) return function (n, r) {
var i = Object.assign({}, t, r);return e(n, i);
};n = "object" == (typeof n === "undefined" ? "undefined" : _typeof(n)) ? n : {};n.annotate = n.annotate || !1;n.bare = n.bare || !1;n.display = n.display || "inline";n.standalone = n.standalone || !1;n.dir = n.dir || "ltr";n.decimalMark = n.decimalMark || ".";n.colSep = n.colSep || ",";n.rowSep = n.rowSep || ";";"," === n.decimalMark && "," === n.colSep && (n.colSep = ";");";" === n.colSep && ";" === n.rowSep && (n.rowSep = ";;");if (n.bare) {
if (n.standalone) throw new Error("Can't output a valid HTML without a root