Post Reply 
element(Real1..Real2)
03-27-2021, 12:12 AM
Post: #1
element(Real1..Real2)
In the calculator help and also the manual, it mentions a “real value” syntax for the element (“Point on”) function.

In particular

> element(0..5) creates a slider bar with a value of 2.5 initially.

Try as I might, after entering this example into geometry symbolic view I can’t get the bar to appear anywhere (plot view, I guess?). This is unlike the element(Object, Real) syntax, which works just fine.

Any thoughts on what I’m missing?
Find all posts by this user
Quote this message in a reply
03-27-2021, 12:31 PM (This post was last modified: 03-27-2021 12:49 PM by roadrunner.)
Post: #2
RE: element(Real1..Real2)
If you want your slider to be labeled GC (for example) copy this:

Instruction():=Instruction()+"GC:= element(0.,1.,0.5); // c(FF000000) v(1) a(t(1) s(3) p(1) b(0) e(1) S(0.1)) "

into the CAS command line and press enter.

Or you can do it from the plot view with Cmds/Plot/Slider (CMDS/6/9).

Or you can type this:

element(0,1,0.5)

into the symbolic view.

I don't think element(0..5) works even though the help says it does.

-road
Find all posts by this user
Quote this message in a reply
Post Reply 




User(s) browsing this thread: 1 Guest(s)