Generates the square function for any real number x. The square function is defined by square(x) = 1 if 2n<=x<2n + 1 and 0 elsewhere. Details
![]() |
x is any real number. |
![]() |
square(x) is the value of square(x) for the given value of x. |
![]() | Note You can define more complex functions by variation and combination of the Step Function, Spike Function and Square Function VIs, respectively. |
The diagram below illustrates square(x)*square(x 0.8) in the interval (4.0, 4.0).