ChristopherChudzicki / math3d-react

A user-friendly 3d graphing calculator for the web. Create, share, and animate 3d mathematical scenes.
https://www.math3d.org
Mozilla Public License 2.0
251 stars 35 forks source link

Adding functions with the ± symbol #234

Open prometeo2008 opened 4 years ago

prometeo2008 commented 4 years ago

Currently, if you want to draw a sphere of radius 4 mathematically that is ±sqrt(16-(x^2+y^2)) you get an error because of ± is a non-legal symbol

ChristopherChudzicki commented 4 years ago

The most common conceptual use-case for +/- is probably a sphere (or similar uses), but as @NeatNit replied in https://github.com/ChristopherChudzicki/math3d-react/issues/205#issuecomment-574787960, you'll generally get a better visualization with some other parametric represenation.

Implicit surfaces, though not perfect in math3d, are also a good option for this sort of thing.