miércoles, 25 de mayo de 2011

Fórmula del Amor

Encontré la fórmula del amor, la despejé y la grafiqué (en gnuplot)...


Código

set terminal png nocrop enhanced font arial 8 size 420,320
set output 'amor.png'
set style fill solid 1.0 noborder
set xrange [-1.1:1.1]
set yrange [-0.75:1.25]
set sample 50000
set title "Fórmula del Amor"
plot (3./5.)*(x**2)**(1./3.)+sqrt((1-x**2)/2) w filledcurves lc rgb "red",\
(3./5.)*(x**2)**(1./3.)-sqrt((1-x**2)/2) w filledcurves lc rgb "red"


1 comentario:

LAZARIUXINC dijo...

gnuplot> plot (3./5.)*(x**2)**(1./3.)+sqrt((1-x**2)/2) w filledcurves lc rgb "red",(3./5.)*(x**2)**(1./3.)-sqrt((1-x**2)/2) w filledcurves lc rgb "red"
^
';' expected