Aller au contenu

Mathc initiation/Fichiers h : c77a4

Un livre de Wikilivres.


Sommaire



Les fonctions trigonométriques de bases avec gnuplot

[modifier le wikicode]


Remarque : Les fonctions trigonométriques sont périodiques. J'ai essayé de ne dessiner qu'une seule période.


Contrôler votre graphe :
# ---------------------
#
#  linetype  | lt <0..8>   (color)
#  linewidth | lw <1..6>   (size)
#
#  set zeroaxis lt 3 lw 1  (set axis)
#
#  set size ratio -1       
#
# ---------------------


Dessinons cos(x) :
# ---------------------
# Copy and past this file into the screen of gnuplot
#
set zeroaxis lt 3 lw 1

set size ratio -1

plot [-pi/2.:3./2.*pi] [-1:1]\
     cos(x) lt 8 lw  1
     
reset
# ---------------------


Dessinons sin(x) :
# ---------------------
# Copy and past this file into the screen of gnuplot
#
set zeroaxis lt 3 lw 1

set size ratio -1

plot [-0.:2*pi] [-1:1]\
     sin(x) lt 8 lw  1
     
reset
# ---------------------


Dessinons tan(x) :
# ---------------------
# Copy and past this file into the screen of gnuplot
#
set zeroaxis lt 3 lw 1

set size ratio -1

plot [-pi/2.:pi/2.] [-3:3]\
     tan(x) lt 8 lw  1
     
reset
# ---------------------


Dessinons cot(x) :
# ---------------------
# Copy and past this file into the screen of gnuplot
#
set zeroaxis lt 3 lw 1

set size ratio -1

plot [-0.:pi] [-3:3]\
     cos(x)/sin(x) lt 8 lw  1
     
reset
# ---------------------


Dessinons sec(x) :
# ---------------------
# Copy and past this file into the screen of gnuplot
#
set zeroaxis lt 3 lw 1

#set size ratio -1

plot [-pi/2.:3./2.*pi] [-6:6]\
     1./cos(x) lt 8 lw  1
     
reset
# ---------------------


Dessinons csc(x) :
# ---------------------
# Copy and past this file into the screen of gnuplot
#
set zeroaxis lt 3 lw 1

#set size ratio -1

plot [-0.:2*pi] [-6:6]\
     1./sin(x) lt 8 lw  1
     
reset
# ---------------------


Dessinons acos(x) :
# ---------------------
# Copy and past this file into the screen of gnuplot
#
set zeroaxis lt 3 lw 1

set size ratio -1

plot [-1.:1.] [-.5:pi]\
     acos(x) lt 8 lw  1
     
reset
# ---------------------


Dessinons asin(x) :
# ---------------------
# Copy and past this file into the screen of gnuplot
#
set zeroaxis lt 3 lw 1

set size ratio -1

plot [-1.:1.] [-pi/2.:pi/2.]\
     asin(x) lt 8 lw  1
     
reset
# ---------------------


Dessinons atan(x) :
# ---------------------
# Copy and past this file into the screen of gnuplot
#
set zeroaxis lt 3 lw 1

set size ratio -1

plot [-3:3] [-pi/2.:pi/2.]\
     atan(x) lt 8 lw  1
     
reset
# ---------------------