Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #14844 > unrolled thread

What is wrong with 2Pi?

Started byAlexei Boulbitch <Alexei.Boulbitch@iee.lu>
First post2013-06-14 08:47 +0000
Last post2013-06-15 08:17 +0000
Articles 3 — 3 participants

Back to article view | Back to comp.soft-sys.math.mathematica


Contents

  What is wrong with 2Pi? Alexei Boulbitch <Alexei.Boulbitch@iee.lu> - 2013-06-14 08:47 +0000
    Re: What is wrong with 2Pi? psycho_dad <s.nesseris@gmail.com> - 2013-06-15 08:16 +0000
    Re: What is wrong with 2Pi? David Bailey <dave@removedbailey.co.uk> - 2013-06-15 08:17 +0000

#14844 — What is wrong with 2Pi?

FromAlexei Boulbitch <Alexei.Boulbitch@iee.lu>
Date2013-06-14 08:47 +0000
SubjectWhat is wrong with 2Pi?
Message-ID<kpelbs$hr4$1@smc.vnet.net>
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



[toc] | [next] | [standalone]


#14876

Frompsycho_dad <s.nesseris@gmail.com>
Date2013-06-15 08:16 +0000
Message-ID<kph7sd$2ec$1@smc.vnet.net>
In reply to#14844
Yeah, it seems like yet another bug... However, wrapping it with N[], seems to be working, ie N[2 Pi].

Cheers

[toc] | [prev] | [next] | [standalone]


#14886

FromDavid Bailey <dave@removedbailey.co.uk>
Date2013-06-15 08:17 +0000
Message-ID<kph7vi$2f6$1@smc.vnet.net>
In reply to#14844
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

[toc] | [prev] | [standalone]


Back to top | Article view | comp.soft-sys.math.mathematica


csiph-web