https://www.bragitoff.com/2016/03/defining-a-periodic-function-in-scilab/sawtooth-wave-2-scilab-negative/
sawtooth wave 2 scilab negative