Hacker News new | past | comments | ask | show | jobs | submit | stuffmatic's comments login

Yes, that is a bug, good catch. The app should show an error if the function is not defined in all chebyshev nodes. Like you have already discovered, it's easy to work around this issue for now.

You could look into using the ChebyshevExpansion class directly. It takes as one of its arguments a callback that returns f(x) for a given x. In your case, f(x) would be your sensor values with some suitable interpolation. A more ambitious route is to add support for somehow importing tabular data into the app.

Thanks for the kind words. I also found it surprisingly hard to find working Chebyshev approximation code. Hopefully this project will change that :)

Or, since the function expression is just JavaScript, singularities can also be avoided like this: x == 0 ? 1 : Math.sin(x) / x

Thank you! Yes it does feel a bit magical, both the mathematical aspects and the fact that it all boils down to a few lines of code in practice.

By popular demand, I've added Atom feeds for blog posts and projects:

https://stuffmatic.com/feed.xml https://stuffmatic.com/feed/projects.xml


Do you have plans to open source the tool that generates the vector file for cutting?


bump. very interesting indeed, what tools did you use, can you share some details please?


He mentions what he uses in a different post of his: https://news.ycombinator.com/item?id=21194300

Sadly it seems he's not interested in sharing the code. That's legit, but would be nice to get a confirmation.


Yeah, I don't currently have any plans to release the code unfortunately. But in short it's a scenegraph library written in typescript plus a sprawling collection of algorithms in various states of completion. The scenegraph can be rendered to an SVG string and since the library does not depend on any browser specific APIs it can be run both in node.js and in a browser. For interactive browser based experimentation I use Vue.js for GUI stuff.


I love pendantic notes! Steiner chains, Thurston's notion of circle packing and circle packing as an optimization problem are quite different from a theoretical point of view. However, they all have one thing in common, and that is that the end result is an arrangement of circles that you may or may not be able to turn into a lamp :)


Pendantic lamp. Pedantic note. :-)


Thanks for the kind words! I'm using a custom built javascript framework that runs in a web browser. Should probably have mentioned this in the post :)

Others have requested RSS too, by the way. I'll look into it.


You're welcome! Big fan of fSpy as well!

Thanks for the update; would never guessed that it runs in the browser. Will you make that framework public at one point in the future? It would be exciting af to look into that.

And thanks for considering to add RSS (or atom or whatever)! I think this makes the web great – and certainly I want to read more of the stuff you build.


I'll second this request. This was a nice quick read, combining several of my hobby interests: elegant geometric design backed by thoughtful mathematics, and small-scale manufacturing. I would definitely subscribe via RSS.


The tools are written in typescript and run in a web browser. I use vue.js to build interactive GUIs.


Thanks for the kind words!


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: