Je voudrais représenter la fonction suivante entre 2,8 et 10 :
Pour cela, je lance GeoGebra, je crée ma fonction puis je l'exporte via "Graphique vers PGF/Tikz". Je fais ensuite un copier-coller sur Texmaker.
Le problème est que ma fonction ne s'affiche pas : il y a juste le repère. Je ne comprends pas pourquoi cela ne marche pas : si quelqu'un peut m'aider... Merci.
- Code: Tout sélectionner
\documentclass[a4paper,12pt]{article}
\usepackage[T1]{fontenc}
\usepackage[latin1]{inputenc}
\usepackage[francais]{babel}
\usepackage[left=2cm,right=2cm,top=2cm,bottom=2cm]{geometry}
\usepackage{graphicx}
\usepackage{amssymb,amsmath}
\usepackage{amsthm}
\usepackage{pgf,tikz}
\usepackage{multicol}
\usepackage{tabularx}
\usepackage{lscape}
\usepackage{mathrsfs}
\usetikzlibrary{arrows}
\pagestyle{empty}
\parindent=0cm
\begin{document}
\begin{center}
\begin{tikzpicture}[line cap=round,line join=round,>=triangle 45,x=1.0cm,y=0.1cm]
\draw[->,color=black] (0,0) -- (11,0);
\foreach \x in {0,1,2,3,4,5,6,7,8,9,10}
\draw[shift={(\x,0)},color=black] (0pt,2pt) -- (0pt,-2pt) node[below] {\footnotesize $\x$};
\draw[->,color=black] (0,0) -- (0,110);
\foreach \y in {10,20,30,40,50,60,70,80,90,100}
\draw[shift={(0,\y)},color=black] (2pt,0pt) -- (-2pt,0pt) node[left] {\footnotesize $\y$};
\clip(0,0) rectangle (11,110);
\draw[line width=2pt, smooth,samples=100,domain=2.8:10.0] plot(\x,{180/3.1415926535*asin(2.8/(\x))});
\end{tikzpicture}
\end{center}
\end{document}