# assignment 16: Fuzzy Disjunction # author: Christian Moewes reset set nokey set hidden3d set isosamples 15 set xrange [0:1] set yrange [0:1] set zrange [0:1] set xtics .25 set ytics .25 set ztics .5 set view 60, 330, .65, 1.5 # define the functions g(a, c) = a / (c + (1 - c) * a) g_inv(a, c) = c * a / (1 + (c - 1) * a) g_pseudo(a, c) = (a <= 1) ? g_inv(a, c) : 1 t(x, y, c) = g_pseudo(g(x, c) + g(y, c), c) ## store resulting negation in gray scale #set term post eps enh monochrome # store resulting negation in color set term post eps enh color set output "./a16_lambda1E-1.eps" splot t(x, y, .1) set output "./a16_lambda2E-1.eps" splot t(x, y, .2) set output "./a16_lambda5E-1.eps" splot t(x, y, .5) set output "./a16_lambda1.eps" splot t(x, y, 1) set output "./a16_lambda2.eps" splot t(x, y, 2) set output "./a16_lambda5.eps" splot t(x, y, 5)