[Date Index] [Thread Index] [Author Index]
Re: Error in FractionalPart?
I get a different simplification: FullSimplify[f[x]^2 h[x]^2] 16 \[Pi]^4 (-1 + FractionalPart[x/(2 \[Pi])])^2 FractionalPart[x/( 2 \[Pi])]^2 and the plots look the same. Bobby On Sat, 08 Aug 2009 03:39:18 -0500, Filippo Miatto <miatto at gmail.com> wrote: > Dear all, > I have a little issue while fullsimplifying an apparently simple > expression. > After defining the functions > > F[x_] := 2 \[Pi] FractionalPart[x/(2 \[Pi])] > H[x_] := 2 \[Pi] FractionalPart[-x/(2 \[Pi])] + 2 \[Pi] > > I plot the function (F[x]^2)(H[x]^2) between 0 and 4pi and i get > something like a double 'gaussian' bell (it's not gaussian, it is just > to picture it). > Then I enter > > FullSimplify[(F[x]^2)(H[x]^2)] > > and I get as a result > > 16 \[Pi]^4 FractionalPart[x/(2 \[Pi])]^4 > > which when plotted does not give the same plot, actually it's very > different. > What am I (or is mathematica) doing wrong? > > Thank you in advance, > Filippo > -- DrMajorBob at bigfoot.com