Coder Social home page Coder Social logo

Comments (6)

paulmasson avatar paulmasson commented on June 16, 2024

@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.

paulmasson avatar paulmasson commented on June 16, 2024

@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.

paulmasson avatar paulmasson commented on June 16, 2024

@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.

axkr avatar axkr commented on June 16, 2024

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.

paulmasson avatar paulmasson commented on June 16, 2024

@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.

paulmasson avatar paulmasson commented on June 16, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.