Processing math: 100%

First time here? Check out the FAQ!

Ask Your Question
0

Slider for fractions of pi

asked 5 years ago

Ingo gravatar image

I'd like to have in @interact a slider for (0,2pi) with stepsize 0.05pi that shows as label α and the current value only in the format xπ

Preview: (hide)

Comments

So make a slider from 0 to 2 with step size 0.05 and then multiply that x by pi. Did you have some trouble doing that? What did you try?

Iguananaut gravatar imageIguananaut ( 5 years ago )

1 Answer

Sort by » oldest newest most voted
1

answered 5 years ago

Emmanuel Charpentier gravatar image

Wouldn't a slider for xr[0 1] and a label reporting "\alpha = 2\pi{}".format(x)do the job ? Of course, in the computation, you'd have to use α=xr2π. So what ?

Preview: (hide)
link

Comments

The current value from the sliderr is displayed to the right of the sliderr - that would show the value of x_r, but I should like to see there that value augmented by 2π.

Ingo gravatar imageIngo ( 5 years ago )

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 5 years ago

Seen: 248 times

Last updated: Aug 23 '19