Slider for fractions of pi
I'd like to have in @interact a slider for (0,2pi) with stepsize 0.05pi that shows as label $\alpha$ and the current value only in the format $x*\pi$
Wouldn't a slider for $x_r\in\left[0~1\right]$ and a label reporting "\alpha = 2\pi{}".format(x)do the job ? Of course, in the computation, you'd have to use $\alpha=x_r\cdot2\pi$. So what ?
Asked: 2019-08-21 23:31:23 +0100
Seen: 293 times
Last updated: Aug 23 '19
Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.
So make a slider from 0 to 2 with step size 0.05 and then multiply that
xbypi. Did you have some trouble doing that? What did you try?