/* -*- C++ -*- */ /************************************************************************* * Copyright(c) 1995~2005 Masaharu Goto (root-cint@cern.ch) * * For the licensing terms see the file COPYING * ************************************************************************/ #include const double PI=3.141592; main() { array x=array(0,PI*2,100); plot << "Signal processing example" << x << sin(x) << "sin(1)" << square(x*2) << "square(2)" << sin(x*3) << "sin(3)" << diff(x,sin(x*3)) << "diff(sin(3))" << abs(diff(x,sin(x*3))) << "abs(diff(sin(3)))" << rand(x) << "rand()" << endl; }