絕對值函數
Author: 藍邦偉  老師

顯示圖形

u = Vector((x(Corner[1]), 0), (x(Corner[3]), 0))
v = Vector((0, y(Corner[1])), (0, y(Corner[3])))
f_1(x) = 1 / 2 * abs(x + 1) + abs(x - 3)
Graph = 0 (slider from 0 to 3, step 1)
TF = true
a = 1 (slider from -5 to 5, step 0.1)
b = 1 (slider from -5 to 5, step 0.1)
c = 1 (slider from -5 to 5, step 0.1)
f_2 = If(x < 0, -x, x^(2))
f_3 = If(x < -1, -x + 1, If[x ≥ 2, cos(x), x^(2) + 1])