Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.


Math Forum » Discussions » Software » comp.soft-sys.math.mathematica

Topic: What is wrong with 2Pi?
Replies: 2   Last Post: Jun 15, 2013 4:17 AM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
David Bailey

Posts: 714
Registered: 11/7/08
Re: What is wrong with 2Pi?
Posted: Jun 15, 2013 4:17 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

On 14/06/2013 09:47, Alexei Boulbitch wrote:
> Dear community,
>
> This works:
>
> Manipulate[
> Plot[Sin[a x], {x, 0, 4 Pi}], {{a, 1}, 0, 6.28,
> VerticalGauge[##, ImageSize -> 50] &}, ControlPlacement -> Left]
>
> This
>
> Manipulate[
> Plot[Sin[a x], {x, 0, 4 Pi}], {{a, 1}, 0, 2 \[Pi],
> VerticalGauge[##, ImageSize -> 50] &}, ControlPlacement -> Left]
>
> however, does not work. I cannot move the gauge in this latter case, while it is easy to move it in the former one.
>
> So, if I am right, is it Pi placed instead of 6.28 that disturbs the functioning? Please check it. Looks like a bug.
>
> Alexei
>
>
> Alexei BOULBITCH, Dr., habil.
> IEE S.A.
> ZAE Weiergewan,
> 11, rue Edmond Reuter,
> L-5326 Contern, LUXEMBOURG
>
> Office phone : +352-2454-2566
> Office fax: +352-2454-3566
> mobile phone: +49 151 52 40 66 44
>
> e-mail: alexei.boulbitch@iee.lu
>
>
>
>

If you initialise a to a real number, this problem goes away:

Manipulate[
Plot[Sin[a x], {x, 0, 4 Pi}], {{a, 1.0}, 0, 2 \[Pi],
VerticalGauge[##, ImageSize -> 50] &}, ControlPlacement -> Left]

David Bailey
http://www.dbaileyconsultancy.co.uk




Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.