Is it possible to use the second argument Dynamic when setting control variables inside Manipulate?

I can't get the syntax to do what I want, and now I'm not sure if this is possible.

short review: This can be done:

{Slider[Dynamic[b], {-2 Pi, 2 Pi}], Dynamic[Sin[b]]}

and now every time the slider moves, “b” changes, and its Sin [] is automatically printed

enter image description here

But suppose I want to do the calculation (Sin []) directly where the slider is, and show only the final result of Sin [], then I can use the second Dynamic argument as follows:

{Slider[Dynamic[b, (b = #; a = Sin[b]; #) &], {-2 Pi, 2 Pi}], 
 Dynamic[a]}

enter image description here

Now I want to use Manipulate and do the same. I can do the same as the first example above:

Manipulate[
 Sin[b],
 Control[{{b, 0, "b="}, -2 Pi, 2 Pi, ControlType -> Slider}]
 ]

enter image description here

Manipulate "" Sin [b] , "b" .

, , Manipulate, :

Manipulate[
 a,
 Control[{{b, 0, "b="}, -2 Pi, 2 Pi, ControlType -> Slider}] (*where to insert Sin[b]?*)
 ]

('a' ).

, 'b' . , ?

,

Manipulate[
 a,
 {Slider[Dynamic[b, (b = #; a = Sin[b]; #) &], {-2 Pi, 2 Pi}]}
 ]

Manipulate.

: Dynamic Manipulate controls?

, , , "" , , . , , , , .

9/16/11

, , , CDF Mathematica.

, , , CDF (, , WReach, ).

, , , - .

enter image description here

CDF , . . CDF -. , , Manipulate, , 5 , , 8 . , , ( , ), . . , , .

, , .

.

, .

, . CDF, , .

+5
1

Manipulate Control . , . , -

Manipulate[a, {a, None}, {b, None}, 
 Row[{"b= ",Slider[Dynamic[b, (b = #; a = Sin[b]; #)&], {-2 Pi, 2 Pi}]}]]

{a, None} {b, None} , , .

+7

All Articles