Reply about Piecewise and Integral
- To: mathgroup at smc.vnet.net
- Subject: [mg75378] Reply about Piecewise and Integral
- From: zosi <zosi at to.infn.it>
- Date: Fri, 27 Apr 2007 05:25:32 -0400 (EDT)
Hi, Many thanks to Bhuvanesh, dh at metrohm.ch, Jean-Marc Gulliet, Daniel Lichtblau, for their reply to my [mg75189, 20 April 07] Piecewise and Integral. In particular, the hint by Bhuvanesh to use f[x_] = 10*UnitStep[Sin[Pi*x + 3/2]] and the equivalent hint by Lichtblau to use f[x_] := Piecewise[{{10,Abs[FractionalPart[x/t]]<=tau || Abs[FractionalPart[x/t]]>=1-tau}}] when t=2 and tau=t/8 gave the correct answer (a0 = 10). Conclusion: their method is more elegant (I am not surprised) AND it works. However, let me say that I am feeling a bit "deceived" by Piecewise. Thanks again Gianfranco Zosi Dip Fisica Generale "A.Avogadro" Universita di Torino