Comments (6)
@axkr guess this function needs work! Thanks for catching this.
There is currently no mouse-over information in either 2D or 3D, but that would be a nice feature to implement in the future. In the meantime, parametric
has an option to set maxFaceSlope
to remove obvious errors. A setting of 3 works here, of course leaving gaps in the surface.
I've added test data for this function, both on the complex plane and unit circle. The latter errors out immediately, so I'll need to fix this sooner rather than later...
from mathcell.
@axkr the data on the unit circle no longer errors out, but there are still problems with the function as can be seen with this webpage:
https://paulmasson.github.io/math/test/unit-circle.html
It ultimately traces back to expIntegralEi
through the upper incomplete gamma function. Still needs work...
from mathcell.
@axkr fixed issues in the underlying expIntegralEi around the origin, so this should look much better. Included in release 1.4.8.
The mouse-over idea is now #26. Thanks for the input!
from mathcell.
There is still an outlier:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC
"-//W3C//DTD XHTML 1.1 plus MathML 2.0 plus SVG 1.1//EN"
"http://www.w3.org/2002/04/xhtml-math-svg/xhtml-math-svg.dtd">
<html xmlns="[http://www.w3.org/1999/xhtml]()" style="[width: 100%; height: 100%; margin: 0; padding: 0]()">
<head>
<meta charset="[utf-8]()">
<title>MathCell</title>
</head>
<body style="[width: 100%; height: 100%; margin: 0; padding: 0]()">
<script src="[https://cdn.jsdelivr.net/gh/paulmasson/[email protected]/build/math.js](view-source:https://cdn.jsdelivr.net/gh/paulmasson/[email protected]/build/math.js)"></script>
<script src="[https://cdn.jsdelivr.net/gh/paulmasson/[email protected]/build/mathcell.js](view-source:https://cdn.jsdelivr.net/gh/paulmasson/[email protected]/build/mathcell.js)"></script>
<script src="[https://cdn.jsdelivr.net/gh/mathjax/[email protected]/MathJax.js?config=TeX-AMS_HTML](view-source:https://cdn.jsdelivr.net/gh/mathjax/[email protected]/MathJax.js?config=TeX-AMS_HTML)"></script>
<div class="[mathcell]()" style="[display: flex; width: 100%; height: 100%; margin: 0; flex-direction: column; overflow: hidden]()">
<script>
var parent = document.currentScript.parentNode;
var id = generateId();
parent.id = id;
MathCell( id, [ ] );
parent.update = function( id ) {
function z1(z) { try { return expIntegralE(2,z);}catch(e){return complex(Number.NaN);} }
var p1 = parametric( (re,im) => [ re, im, z1(complex(re,im)) ], [-2.0, 2.0], [-2.0, 2.0], { complexFunction: 'abs', colormap: 'complexArgument' } );
var config = { type: 'threejs', aspectRatio: [1.0,1,1] };
var data = [p1];
evaluate( id, data, config );
}
parent.update( id );
</script>
</div>
</body>
</html>
from mathcell.
@axkr this is not an outlier but an error along the entire negative imaginary axis. You can verify by extending the lower y-limit.
Top of my todo list for this repository is a test page for both the real and imaginary axes to check for branch errors and the like.
from mathcell.
@axkr the test along complex axes is complete. You can see the error there in the function above:
https://paulmasson.github.io/math/test/complex-axes.html
from mathcell.
Related Issues (20)
- Are you positive it will always be the last script? HOT 6
- Colormaps in surface HOT 7
- Enabling a transparent MathCell background
- Loading iframes faster HOT 4
- consider x3d as xml and in inline HOT 12
- Support Mathematica colormaps HOT 4
- NPM support HOT 5
- Contour and density plot any examples? HOT 1
- Automatically catch errors in plotting HOT 5
- JSON.stringify() filter out "null" values HOT 17
- Add plot legends for 3D mode
- cosIntegral - wrong values in parametric plot HOT 2
- Mouse-over information in both 2D and 3D
- Let MathCell calculate the aspect ratio HOT 4
- ComplexPlot3D(Arg(z), {z, -2 - 2*I, 2 + 2*I} ) doesn't display a graph HOT 6
- Modifying contentWindow in Safari/iOS
- "Translation" animation with step=0 HOT 1
- Setting material properties HOT 3
- How to set the range for the z-axis in a parametric plot HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mathcell.