-
-
Notifications
You must be signed in to change notification settings - Fork 86
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- https://github.com/paulmasson/mathcell/releases/tag/1.10.1 - functions which use mathcell: `ComplexPlot3D`, `Manipulate`, `Plot3D`
- Loading branch information
Showing
3 changed files
with
4 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1217,7 +1217,7 @@ public void testSinXY() { | |
+ " \"scanner\" : \"Plot\",\n" + " \"error\" : \"false\",\n" | ||
+ " \"numsubpods\" : 1,\n" + " \"subpods\" : [ {\n" | ||
+ " \"sinput\" : \"Plot3D(Sin(x*y),{x,-3.5`,3.5`},{y,-3.5`,3.5`})\",\n" | ||
+ " \"mathcell\" : \"<iframe srcdoc=\\\"<?xml version="1.0" encoding="UTF-8"?>\\n\\n<!DOCTYPE html PUBLIC\\n "-//W3C//DTD XHTML 1.1 plus MathML 2.0 plus SVG 1.1//EN"\\n "http://www.w3.org/2002/04/xhtml-math-svg/xhtml-math-svg.dtd">\\n\\n<html xmlns="http://www.w3.org/1999/xhtml" style="width: 100%; height: 100%; margin: 0; padding: 0">\\n<head>\\n<meta charset="utf-8">\\n<title>MathCell</title>\\n</head>\\n\\n<body style="width: 100%; height: 100%; margin: 0; padding: 0">\\n<script src="https://cdn.jsdelivr.net/gh/paulmasson/[email protected]/build/math.js"></script>\\n<script src="https://cdn.jsdelivr.net/gh/paulmasson/[email protected]/build/mathcell.js"></script>\\n<script src="https://cdn.jsdelivr.net/gh/mathjax/[email protected]/MathJax.js?config=TeX-AMS_HTML"></script>\\n\\n<div class="mathcell" style="display: flex; width: 100%; height: 100%; margin: 0; flex-direction: column; overflow: hidden">\\n<script>\\nvar parent = document.currentScript.parentNode;\\nvar id = generateId();\\nparent.id = id;\\nMathCell( id, [ ] );\\n\\nparent.update = function( id ) {\\n\\n\\nfunction z1(x,y) { return [ x, y, sin(mul(x,y)) ]; }\\n\\nvar p1 = parametric( z1, [-3.5, 3.5], [-3.5, 3.5], { colormap: 'hot' } );\\n\\n var config = { type: 'threejs' };\\n var data = [p1];\\nevaluate( id, data, config );\\n\\n}\\nparent.update( id );\\n\\n</script>\\n<form method='post' action='https://jsfiddle.net/api/post/mootools/1.3/dependencies/more/' target='check' style='margin-top: auto;'>\\n<button type='submit' style='background-color:lightblue;'>JSFiddle</button>\\n<textarea name='html' style='display:none;'><div class="mathcell" style="width:600px; height:400px;"></textarea>\\n<textarea name='js' style='display:none;'>var parent = document.currentScript.parentNode;\\nvar id = generateId();\\nparent.id = id;\\nMathCell( id, [ ] );\\n\\nparent.update = function( id ) {\\n\\n\\nfunction z1(x,y) { return [ x, y, sin(mul(x,y)) ]; }\\n\\nvar p1 = parametric( z1, [-3.5, 3.5], [-3.5, 3.5], { colormap: 'hot' } );\\n\\n var config = { type: 'threejs' };\\n var data = [p1];\\nevaluate( id, data, config );\\n\\n}\\nparent.update( id );\\n</textarea>\\n<textarea name='resources' style='display:none;'>https://cdn.jsdelivr.net/gh/paulmasson/[email protected]/build/math.js,https://cdn.jsdelivr.net/gh/paulmasson/[email protected]/build/mathcell.js,https://cdn.jsdelivr.net/gh/mathjax/[email protected]/MathJax.js?config=TeX-AMS_HTML</textarea>\\n</form>\\n</div>\\n</body>\\n</html>\\\" style=\\\"display: block; width: 100%; height: 100%; border: none;\\\" ></iframe>\"\n" | ||
+ " \"mathcell\" : \"<iframe srcdoc=\\\"<?xml version="1.0" encoding="UTF-8"?>\\n\\n<!DOCTYPE html PUBLIC\\n "-//W3C//DTD XHTML 1.1 plus MathML 2.0 plus SVG 1.1//EN"\\n "http://www.w3.org/2002/04/xhtml-math-svg/xhtml-math-svg.dtd">\\n\\n<html xmlns="http://www.w3.org/1999/xhtml" style="width: 100%; height: 100%; margin: 0; padding: 0">\\n<head>\\n<meta charset="utf-8">\\n<title>MathCell</title>\\n</head>\\n\\n<body style="width: 100%; height: 100%; margin: 0; padding: 0">\\n<script src="https://cdn.jsdelivr.net/gh/paulmasson/[email protected]/build/math.js"></script>\\n<script src="https://cdn.jsdelivr.net/gh/paulmasson/[email protected]/build/mathcell.js"></script>\\n<script src="https://cdn.jsdelivr.net/gh/mathjax/[email protected]/MathJax.js?config=TeX-AMS_HTML"></script>\\n\\n<div class="mathcell" style="display: flex; width: 100%; height: 100%; margin: 0; flex-direction: column; overflow: hidden">\\n<script>\\nvar parent = document.currentScript.parentNode;\\nvar id = generateId();\\nparent.id = id;\\nMathCell( id, [ ] );\\n\\nparent.update = function( id ) {\\n\\n\\nfunction z1(x,y) { return [ x, y, sin(mul(x,y)) ]; }\\n\\nvar p1 = parametric( z1, [-3.5, 3.5], [-3.5, 3.5], { colormap: 'hot' } );\\n\\n var config = { type: 'threejs' };\\n var data = [p1];\\nevaluate( id, data, config );\\n\\n}\\nparent.update( id );\\n\\n</script>\\n<form method='post' action='https://jsfiddle.net/api/post/mootools/1.3/dependencies/more/' target='check' style='margin-top: auto;'>\\n<button type='submit' style='background-color:lightblue;'>JSFiddle</button>\\n<textarea name='html' style='display:none;'><div class="mathcell" style="width:600px; height:400px;"></textarea>\\n<textarea name='js' style='display:none;'>var parent = document.currentScript.parentNode;\\nvar id = generateId();\\nparent.id = id;\\nMathCell( id, [ ] );\\n\\nparent.update = function( id ) {\\n\\n\\nfunction z1(x,y) { return [ x, y, sin(mul(x,y)) ]; }\\n\\nvar p1 = parametric( z1, [-3.5, 3.5], [-3.5, 3.5], { colormap: 'hot' } );\\n\\n var config = { type: 'threejs' };\\n var data = [p1];\\nevaluate( id, data, config );\\n\\n}\\nparent.update( id );\\n</textarea>\\n<textarea name='resources' style='display:none;'>https://cdn.jsdelivr.net/gh/paulmasson/[email protected]/build/math.js,https://cdn.jsdelivr.net/gh/paulmasson/[email protected]/build/mathcell.js,https://cdn.jsdelivr.net/gh/mathjax/[email protected]/MathJax.js?config=TeX-AMS_HTML</textarea>\\n</form>\\n</div>\\n</body>\\n</html>\\\" style=\\\"display: block; width: 100%; height: 100%; border: none;\\\" ></iframe>\"\n" | ||
+ " } ]\n" + " }, {\n" + " \"title\" : \"Alternate form\",\n" | ||
+ " \"scanner\" : \"Simplification\",\n" + " \"error\" : \"false\",\n" | ||
+ " \"numsubpods\" : 1,\n" + " \"subpods\" : [ {\n" | ||
|
@@ -1290,7 +1290,7 @@ public void testComplexPlot3D() { | |
+ " \"numsubpods\" : 1,\n" // | ||
+ " \"subpods\" : [ {\n" // | ||
+ " \"sinput\" : \"ComplexPlot3D((1 + z^2)/(-1 + z^2),{z,-2 + (-2)*I,2 + I*2},PlotRange->{0,3})\",\n" // | ||
+ " \"mathcell\" : \"<iframe srcdoc=\\\"<?xml version="1.0" encoding="UTF-8"?>\\n\\n<!DOCTYPE html PUBLIC\\n "-//W3C//DTD XHTML 1.1 plus MathML 2.0 plus SVG 1.1//EN"\\n "http://www.w3.org/2002/04/xhtml-math-svg/xhtml-math-svg.dtd">\\n\\n<html xmlns="http://www.w3.org/1999/xhtml" style="width: 100%; height: 100%; margin: 0; padding: 0">\\n<head>\\n<meta charset="utf-8">\\n<title>MathCell</title>\\n</head>\\n\\n<body style="width: 100%; height: 100%; margin: 0; padding: 0">\\n<script src="https://cdn.jsdelivr.net/gh/paulmasson/[email protected]/build/math.js"></script>\\n<script src="https://cdn.jsdelivr.net/gh/paulmasson/[email protected]/build/mathcell.js"></script>\\n<script src="https://cdn.jsdelivr.net/gh/mathjax/[email protected]/MathJax.js?config=TeX-AMS_HTML"></script>\\n\\n<div class="mathcell" style="display: flex; width: 100%; height: 100%; margin: 0; padding: 0; flex-direction: column; overflow: hidden">\\n<script>\\nvar parent = document.currentScript.parentNode;\\nvar id = generateId();\\nparent.id = id;\\nMathCell( id, [ ] );\\n\\nparent.update = function( id ) {\\n\\n\\nfunction z1(z) { try { return mul(add(1,pow(z,2)),inv(add(-1,pow(z,2))));}catch(e){return complex(Number.NaN);} }\\n\\nvar p1 = parametric( (re,im) => [ re, im, z1(complex(re,im)) ], [-2.0, 2.0], [-2.0, 2.0], { complexFunction: 'abs', colormap: 'complexArgument' } );\\n\\n var config = { type: 'threejs', aspectRatio: [1.0,1,1], zMin: 0, zMax: 3 };\\n var data = [p1];\\nevaluate( id, data, config );\\n\\n}\\nparent.update( id );\\n\\n</script>\\n<form method='post' action='https://jsfiddle.net/api/post/mootools/1.3/dependencies/more/' target='check' style='margin-top: auto;'>\\n<button type='submit' style='background-color:lightblue;'>JSFiddle</button>\\n<textarea name='html' style='display:none;'><div class="mathcell" style="width:600px; height:400px;"></textarea>\\n<textarea name='js' style='display:none;'>var parent = document.currentScript.parentNode;\\nvar id = generateId();\\nparent.id = id;\\nMathCell( id, [ ] );\\n\\nparent.update = function( id ) {\\n\\n\\nfunction z1(z) { try { return mul(add(1,pow(z,2)),inv(add(-1,pow(z,2))));}catch(e){return complex(Number.NaN);} }\\n\\nvar p1 = parametric( (re,im) => [ re, im, z1(complex(re,im)) ], [-2.0, 2.0], [-2.0, 2.0], { complexFunction: 'abs', colormap: 'complexArgument' } );\\n\\n var config = { type: 'threejs', aspectRatio: [1.0,1,1], zMin: 0, zMax: 3 };\\n var data = [p1];\\nevaluate( id, data, config );\\n\\n}\\nparent.update( id );\\n</textarea>\\n<textarea name='resources' style='display:none;'>https://cdn.jsdelivr.net/gh/paulmasson/[email protected]/build/math.js,https://cdn.jsdelivr.net/gh/paulmasson/[email protected]/build/mathcell.js,https://cdn.jsdelivr.net/gh/mathjax/[email protected]/MathJax.js?config=TeX-AMS_HTML</textarea>\\n</form>\\n</div>\\n</body>\\n</html>\\\" style=\\\"display: block; width: 100%; height: 100%; border: none;\\\" ></iframe>\"\n" // | ||
+ " \"mathcell\" : \"<iframe srcdoc=\\\"<?xml version="1.0" encoding="UTF-8"?>\\n\\n<!DOCTYPE html PUBLIC\\n "-//W3C//DTD XHTML 1.1 plus MathML 2.0 plus SVG 1.1//EN"\\n "http://www.w3.org/2002/04/xhtml-math-svg/xhtml-math-svg.dtd">\\n\\n<html xmlns="http://www.w3.org/1999/xhtml" style="width: 100%; height: 100%; margin: 0; padding: 0">\\n<head>\\n<meta charset="utf-8">\\n<title>MathCell</title>\\n</head>\\n\\n<body style="width: 100%; height: 100%; margin: 0; padding: 0">\\n<script src="https://cdn.jsdelivr.net/gh/paulmasson/[email protected]/build/math.js"></script>\\n<script src="https://cdn.jsdelivr.net/gh/paulmasson/[email protected]/build/mathcell.js"></script>\\n<script src="https://cdn.jsdelivr.net/gh/mathjax/[email protected]/MathJax.js?config=TeX-AMS_HTML"></script>\\n\\n<div class="mathcell" style="display: flex; width: 100%; height: 100%; margin: 0; padding: 0; flex-direction: column; overflow: hidden">\\n<script>\\nvar parent = document.currentScript.parentNode;\\nvar id = generateId();\\nparent.id = id;\\nMathCell( id, [ ] );\\n\\nparent.update = function( id ) {\\n\\n\\nfunction z1(z) { try { return mul(add(1,pow(z,2)),inv(add(-1,pow(z,2))));}catch(e){return complex(Number.NaN);} }\\n\\nvar p1 = parametric( (re,im) => [ re, im, z1(complex(re,im)) ], [-2.0, 2.0], [-2.0, 2.0], { complexFunction: 'abs', colormap: 'complexArgument' } );\\n\\n var config = { type: 'threejs', aspectRatio: [1.0,1,1], zMin: 0, zMax: 3 };\\n var data = [p1];\\nevaluate( id, data, config );\\n\\n}\\nparent.update( id );\\n\\n</script>\\n<form method='post' action='https://jsfiddle.net/api/post/mootools/1.3/dependencies/more/' target='check' style='margin-top: auto;'>\\n<button type='submit' style='background-color:lightblue;'>JSFiddle</button>\\n<textarea name='html' style='display:none;'><div class="mathcell" style="width:600px; height:400px;"></textarea>\\n<textarea name='js' style='display:none;'>var parent = document.currentScript.parentNode;\\nvar id = generateId();\\nparent.id = id;\\nMathCell( id, [ ] );\\n\\nparent.update = function( id ) {\\n\\n\\nfunction z1(z) { try { return mul(add(1,pow(z,2)),inv(add(-1,pow(z,2))));}catch(e){return complex(Number.NaN);} }\\n\\nvar p1 = parametric( (re,im) => [ re, im, z1(complex(re,im)) ], [-2.0, 2.0], [-2.0, 2.0], { complexFunction: 'abs', colormap: 'complexArgument' } );\\n\\n var config = { type: 'threejs', aspectRatio: [1.0,1,1], zMin: 0, zMax: 3 };\\n var data = [p1];\\nevaluate( id, data, config );\\n\\n}\\nparent.update( id );\\n</textarea>\\n<textarea name='resources' style='display:none;'>https://cdn.jsdelivr.net/gh/paulmasson/[email protected]/build/math.js,https://cdn.jsdelivr.net/gh/paulmasson/[email protected]/build/mathcell.js,https://cdn.jsdelivr.net/gh/mathjax/[email protected]/MathJax.js?config=TeX-AMS_HTML</textarea>\\n</form>\\n</div>\\n</body>\\n</html>\\\" style=\\\"display: block; width: 100%; height: 100%; border: none;\\\" ></iframe>\"\n" // | ||
+ " } ]\n" // | ||
+ " } ]\n" // | ||
+ " }\n" // | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -831,7 +831,7 @@ public void testSinXY() { | |
+ " \"scanner\" : \"Plot\",\n" + " \"error\" : \"false\",\n" | ||
+ " \"numsubpods\" : 1,\n" + " \"subpods\" : [ {\n" | ||
+ " \"sinput\" : \"Plot3D(Sin(x*y),{x,-3.5`,3.5`},{y,-3.5`,3.5`})\",\n" | ||
+ " \"mathcell\" : \"<iframe srcdoc=\\\"<?xml version="1.0" encoding="UTF-8"?>\\n\\n<!DOCTYPE html PUBLIC\\n "-//W3C//DTD XHTML 1.1 plus MathML 2.0 plus SVG 1.1//EN"\\n "http://www.w3.org/2002/04/xhtml-math-svg/xhtml-math-svg.dtd">\\n\\n<html xmlns="http://www.w3.org/1999/xhtml" style="width: 100%; height: 100%; margin: 0; padding: 0">\\n<head>\\n<meta charset="utf-8">\\n<title>MathCell</title>\\n</head>\\n\\n<body style="width: 100%; height: 100%; margin: 0; padding: 0">\\n<script src="https://cdn.jsdelivr.net/gh/paulmasson/[email protected]/build/math.js"></script>\\n<script src="https://cdn.jsdelivr.net/gh/paulmasson/[email protected]/build/mathcell.js"></script>\\n<script src="https://cdn.jsdelivr.net/gh/mathjax/[email protected]/MathJax.js?config=TeX-AMS_HTML"></script>\\n\\n<div class="mathcell" style="display: flex; width: 100%; height: 100%; margin: 0; flex-direction: column; overflow: hidden">\\n<script>\\nvar parent = document.currentScript.parentNode;\\nvar id = generateId();\\nparent.id = id;\\nMathCell( id, [ ] );\\n\\nparent.update = function( id ) {\\n\\n\\nfunction z1(x,y) { return [ x, y, sin(mul(x,y)) ]; }\\n\\nvar p1 = parametric( z1, [-3.5, 3.5], [-3.5, 3.5], { colormap: 'hot' } );\\n\\n var config = { type: 'threejs' };\\n var data = [p1];\\nevaluate( id, data, config );\\n\\n}\\nparent.update( id );\\n\\n</script>\\n<form method='post' action='https://jsfiddle.net/api/post/mootools/1.3/dependencies/more/' target='check' style='margin-top: auto;'>\\n<button type='submit' style='background-color:lightblue;'>JSFiddle</button>\\n<textarea name='html' style='display:none;'><div class="mathcell" style="width:600px; height:400px;"></textarea>\\n<textarea name='js' style='display:none;'>var parent = document.currentScript.parentNode;\\nvar id = generateId();\\nparent.id = id;\\nMathCell( id, [ ] );\\n\\nparent.update = function( id ) {\\n\\n\\nfunction z1(x,y) { return [ x, y, sin(mul(x,y)) ]; }\\n\\nvar p1 = parametric( z1, [-3.5, 3.5], [-3.5, 3.5], { colormap: 'hot' } );\\n\\n var config = { type: 'threejs' };\\n var data = [p1];\\nevaluate( id, data, config );\\n\\n}\\nparent.update( id );\\n</textarea>\\n<textarea name='resources' style='display:none;'>https://cdn.jsdelivr.net/gh/paulmasson/[email protected]/build/math.js,https://cdn.jsdelivr.net/gh/paulmasson/[email protected]/build/mathcell.js,https://cdn.jsdelivr.net/gh/mathjax/[email protected]/MathJax.js?config=TeX-AMS_HTML</textarea>\\n</form>\\n</div>\\n</body>\\n</html>\\\" style=\\\"display: block; width: 100%; height: 100%; border: none;\\\" ></iframe>\"\n" | ||
+ " \"mathcell\" : \"<iframe srcdoc=\\\"<?xml version="1.0" encoding="UTF-8"?>\\n\\n<!DOCTYPE html PUBLIC\\n "-//W3C//DTD XHTML 1.1 plus MathML 2.0 plus SVG 1.1//EN"\\n "http://www.w3.org/2002/04/xhtml-math-svg/xhtml-math-svg.dtd">\\n\\n<html xmlns="http://www.w3.org/1999/xhtml" style="width: 100%; height: 100%; margin: 0; padding: 0">\\n<head>\\n<meta charset="utf-8">\\n<title>MathCell</title>\\n</head>\\n\\n<body style="width: 100%; height: 100%; margin: 0; padding: 0">\\n<script src="https://cdn.jsdelivr.net/gh/paulmasson/[email protected]/build/math.js"></script>\\n<script src="https://cdn.jsdelivr.net/gh/paulmasson/[email protected]/build/mathcell.js"></script>\\n<script src="https://cdn.jsdelivr.net/gh/mathjax/[email protected]/MathJax.js?config=TeX-AMS_HTML"></script>\\n\\n<div class="mathcell" style="display: flex; width: 100%; height: 100%; margin: 0; flex-direction: column; overflow: hidden">\\n<script>\\nvar parent = document.currentScript.parentNode;\\nvar id = generateId();\\nparent.id = id;\\nMathCell( id, [ ] );\\n\\nparent.update = function( id ) {\\n\\n\\nfunction z1(x,y) { return [ x, y, sin(mul(x,y)) ]; }\\n\\nvar p1 = parametric( z1, [-3.5, 3.5], [-3.5, 3.5], { colormap: 'hot' } );\\n\\n var config = { type: 'threejs' };\\n var data = [p1];\\nevaluate( id, data, config );\\n\\n}\\nparent.update( id );\\n\\n</script>\\n<form method='post' action='https://jsfiddle.net/api/post/mootools/1.3/dependencies/more/' target='check' style='margin-top: auto;'>\\n<button type='submit' style='background-color:lightblue;'>JSFiddle</button>\\n<textarea name='html' style='display:none;'><div class="mathcell" style="width:600px; height:400px;"></textarea>\\n<textarea name='js' style='display:none;'>var parent = document.currentScript.parentNode;\\nvar id = generateId();\\nparent.id = id;\\nMathCell( id, [ ] );\\n\\nparent.update = function( id ) {\\n\\n\\nfunction z1(x,y) { return [ x, y, sin(mul(x,y)) ]; }\\n\\nvar p1 = parametric( z1, [-3.5, 3.5], [-3.5, 3.5], { colormap: 'hot' } );\\n\\n var config = { type: 'threejs' };\\n var data = [p1];\\nevaluate( id, data, config );\\n\\n}\\nparent.update( id );\\n</textarea>\\n<textarea name='resources' style='display:none;'>https://cdn.jsdelivr.net/gh/paulmasson/[email protected]/build/math.js,https://cdn.jsdelivr.net/gh/paulmasson/[email protected]/build/mathcell.js,https://cdn.jsdelivr.net/gh/mathjax/[email protected]/MathJax.js?config=TeX-AMS_HTML</textarea>\\n</form>\\n</div>\\n</body>\\n</html>\\\" style=\\\"display: block; width: 100%; height: 100%; border: none;\\\" ></iframe>\"\n" | ||
+ " } ]\n" + " }, {\n" + " \"title\" : \"Alternate form\",\n" | ||
+ " \"scanner\" : \"Simplification\",\n" + " \"error\" : \"false\",\n" | ||
+ " \"numsubpods\" : 1,\n" + " \"subpods\" : [ {\n" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -218,7 +218,7 @@ public class JSBuilder { | |
|
||
private static final String[] JS_CDN_MATHCELL = | ||
{"https://cdn.jsdelivr.net/gh/paulmasson/[email protected]/build/math.js", | ||
"https://cdn.jsdelivr.net/gh/paulmasson/[email protected].0/build/mathcell.js", | ||
"https://cdn.jsdelivr.net/gh/paulmasson/[email protected].1/build/mathcell.js", | ||
"https://cdn.jsdelivr.net/gh/mathjax/[email protected]/MathJax.js?config=TeX-AMS_HTML"}; | ||
|
||
/** CSS libraries */ | ||
|