Echelle_t = 4 (slider from 1 to 6, step 1)
Division_t = If(Echelle_t ≟ 1, 1, Echelle_t ≟ 2, 2, Echelle_t ≟ 3, 5, Echelle_t ≟ 4, 10, Echelle_t ≟ 5, 20, 50)
t = 0 (slider from (-10 * Division_t) to (10 * Division_t), step Division_t / 100)
Echelle_V = 3 (slider from 1 to 5, step 1)
Division_V = If(Echelle_V ≟ 1, 5, Echelle_V ≟ 2, 10, Echelle_V ≟ 3, 20, Echelle_V ≟ 4, 50, 100)
Amplitude = 100 (slider from 0 to 500, step 1)
Frequence = 50 (slider from 0 to 500, step 1)
S1(x) = (Amplitude * sin(((((2 * π) * Frequence) * 0.001) * x)))
S2(x) = (Amplitude * sgn(sin(((((2 * π) * Frequence) * 0.001) * x))))
S3(x) = ((2 * Amplitude) * (((Frequence * 0.001) * x) - round(((Frequence * 0.001) * x))))
S40(x) = (Amplitude * If[(Frequence / 1000 * x) > round((Frequence / 1000 * x)), (Frequence / 1000 * x) - floor((Frequence / 1000 * x)), ceil((Frequence / 1000 * x)) - (Frequence / 1000 * x)])
S4(x) = (4 * S40(x + 250 / Frequence)) - Amplitude
Signal = 1 (slider from 1 to 4, step 1)
texte3: ("Signal = " * If[Signal ≟ 1, "sinus", Signal ≟ 2, "carré", Signal ≟ 3, "rampe", "triangulaire"])
fs = If(Signal ≟ 1, S1, Signal ≟ 2, S2, Signal ≟ 3, S3, S4)
P: (t, fs(t))
texte1: "Division temps =  " + Division_t + " [ms]"
texte2: "Division tension =  " + Division_V + " [mV]"