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
253 stars 35 forks source link

Offer to visualize "Variable or Function" definitions #197

Open NeatNit opened 5 years ago

NeatNit commented 5 years ago

I find this recurring pattern of defining a Variable or Function, for example:

f(t) = [t, t^2, t^3]

And then immediately afterwards adding another object to visualize, in this example a Parametric Curve:

f(t)

I've included other examples here:

The pattern is always the same - the Variable or Function defines X, then another object is made where the content is just X.

It would be really nice if Math3d offered to "cut out the middle man": when the Variable or Function is defined, it would detect what it might be and add a checkbox to visualize it as such:

When a visualization is offered and selected, a color selector and a secondary cogwheel would appear (as well as parameter ranges, where applicable) to control the visualization as if it were a separately made object of that type.

ChristopherChudzicki commented 5 years ago

I really like this idea! It would be a big improvement and definitely help improve discoverability of some features.

Thanks again for all the issues you've posted today! I'll definitely be thinking about them.

kevinkitty7 commented 4 years ago

A small bug, for "Variable or Function", it does not support the simplest function "max/min".

In "Variable or Function", when I type w(x) = max(x,1) It shows "Eval Error, Depends on undefined symbol(s) max"

max/min functions just works fine in other places, such as "Explicit Surface".

Hope this can be fixed.