From b8506544614d493774df7c948f6a1525fc0e1fb2 Mon Sep 17 00:00:00 2001 From: Armando Luiz Nicolini Delgado <nicolui@inf.ufpr.br> Date: Mon, 25 Apr 2022 13:12:45 -0300 Subject: [PATCH] =?UTF-8?q?/*=20Incluido=20em=20'gnuplot/show3D.gp'=20fun?= =?UTF-8?q?=C3=A7=C3=A3o=20usada=20em=20prova=20de=20ICC=20para=20integral?= =?UTF-8?q?=20de=20MC=20*/?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- gnuplot/show3D.gp | 21 ++++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) diff --git a/gnuplot/show3D.gp b/gnuplot/show3D.gp index dec7b48..deda65c 100755 --- a/gnuplot/show3D.gp +++ b/gnuplot/show3D.gp @@ -1,7 +1,7 @@ #!/usr/bin/gnuplot -c ## set encoding iso_8859_15 set encoding utf -set terminal qt persist +## set terminal qt persist set grid set style data point set style function dots @@ -28,8 +28,6 @@ f(x,y) = cos(x) * cos(y) * exp(-(x - pi)**2 - (y - pi)**2) splot f(x,y) -pause -1 - # # Styblinski-Tang # @@ -47,5 +45,22 @@ f(x,y) = 80 + (x**4 - 16*(x**2) + 5*x + y**4 - 16*(y**2) + 5*y)/2 splot f(x,y) +# +# Função qualquer +# +set xlabel "X" +set ylabel "Y" +set zlabel "Z" +set title "Função qualquer" +set terminal qt 2 title "Função qualquer" + +set xrange [-10000:10000]; set yrange [-10000:10000]; +set style function dots +set isosamples 150,150; + +f(x,y) = 10e5 * x**2 + y**2 - (x**2 + y**2)**2 + 10e-5 * (x**2 + y**2)**4 + +splot f(x,y) + pause -1 -- GitLab