Un programme SDL(Nécessite l'installation de SDL pour être compilé et exécuté voir ci-dessous) en langage C sous Code:Blocks! Retrouvez également le logiciel sous forme exécutable ==> https://dotnet.developpez.com/telecharger/detail/id/6262/Calcul-et-modelisation-d-une-integral
Représentation graphique de la loi de poisson sur [0,10] et [0,13]!
|
|
Tableau d'avancement d'une réaction chimique!
Download Code::Blocks from the following link: Download Code::Blocks
-
Download the MinGW compiler from the following link: Download MinGW
-
Click on
InstallthenContinue. -
Select the following options:
- mingw-developer-toolkit
- mingw32-base
- mingw32-gcc-g++
- msys-base
-
In the
Installationmenu, click onApply Changes. -
The packages will be downloaded and installed.
-
Exit the installer.
-
Execute
C:\MinGW\msys\1.0\postinstall, and answer the questions as follows:y(yes)y(yes)- Provide the installation path for MinGW, i.e.,
C:\mingw.
-
Confirm with the
Enterkey.
-
Download the SDL2 library from the following link: Download SDL2
-
Access the
Downloadsection in the bottom-right of the page. -
Once downloaded, unzip the contents of the SDL folder to the root directory of the Code::Blocks installation folder.
-
Ensure that the
includefolder contains theSDLfolder.
-
Download the SDL2_ttf library from the following link: Download SDL2_ttf
-
Extract the contents and move the required files (like headers and libraries) to the corresponding SDL2 directories in your Code::Blocks installation.
-
In Code::Blocks, go to
File -> New -> Projectand chooseEmpty Project. -
Set up the project name and location as desired.
-
Go to
Project -> Build Options. -
Under the
Search directoriestab:- Add the path to the
includedirectory for both SDL2 and SDL2_ttf under theCompilertab. - Add the path to the
libdirectory for both SDL2 and SDL2_ttf under theLinkertab.
- Add the path to the
-
Under the
Linker settingstab, add the following linker flags:-lmingw32 -lSDL2main -lSDL2 -lSDL2_ttf
-
Copy the necessary
.dllfiles (SDL2.dllandSDL2_ttf.dll) from the SDL2 and SDL2_ttf folders to the same directory where your compiled program will run (typically the project’sbindirectory).
- Ensure that you download the correct version of SDL2 and SDL2_ttf for your architecture (32-bit or 64-bit). The MinGW version you choose should match this architecture.
-
Compile your project by hitting
F9or selectingBuild and Run. -
The program should run if all settings are correct and the
.dllfiles are in the correct directory.
This guide sets up a basic project environment for SDL2 and SDL2_ttf in Code::Blocks, ready for development.
Téléchargement et installation du logiciel Code::Blocks disponible en téléchargement sur le lien suivant: http://www.commentcamarche.net/download/telecharger-34056352-code-blocks
1)Installation localement du compilateur MinGW disponible en téléchargement sur le lien suivant: https://sourceforge.net/projects/mingw-w64/
- Cliquez sur install puis continue
- Choisir mingw-developper-toolkit, mingw32-base, mingw32-gcc g++, msys-base comme sur la capture ci-dessous:
Installation de la bibliothèque SDL qui permet de créer des graphiques dans la console disponible sur le lien suivant: https://www.libsdl.org/ Ensuite en bas à droite accéder à l'onglet download! Une fois téléchargé rendez-vous dans le dossier d'installation du logiciel Code::Blocks et suivez-les étapes illustrer ci-dessous!

Dézippé le contenu du dossier SDL à la racine du dossier du logiciel Code::Blocks

Assurez-vous bien que le dossier include contient bien le dossier SDL


Dans Code::Blocks faites file -> new project et choissisez un projet type SDL


Indiquez le chemin du dossier contenant le bibliothèque SDL normalement stocker
à la racine du dossier contenant le logiciel Code::Blocks!

Grâce à ce calculateur d'intégral vous allez pouvoir calculer l'intégral de n'importe quelle courbe en spécifiant la valeur des bornes inférieure et supérieure de l'intégral et également visualiser graphiquement l'air sous la courbe! Voyez les illustrations ci-dessous!
Représentation graphique de la fonction x² sur [0,25] et [25,50] d'une fonction lineaire ax+b sur [0,25] et cos(x) sur [0,100]!
|
|
|
|
Calcul de la trajectoire d'un projectile + représentation graphique!
|
Représentation graphique de la droite de régréssion linéaire d'une série statistique!
|
Représentation graphique de la formule du binôme de Newton tel que ∀ n ∈ N Hn:(a+b)^n=∑k=0 jusqu'à n(k parmi n)a^(n−k)*b^k!
On remarque:
Pour des choix de valeurs a>b ==> Escalier à droite!
Pour des choix de valeurs b>a ==> Escalier à gauche!
Pour des choix de valeurs a=b ==> Escalier équilibré à droite et à gauche!
|
|
|
Représentation graphique d'une tengente avec sa droite d'équation de la forme y=f'(a)(x-a)+f(a)!
|
Représentation graphique d'un polynôme du second degré de la forme ax²+bx+c!
|
|
Intégral de -3x²+4x+3 sur [0,15]= -2882.699951
|
Calcul de la décroissance radioactive + représentation graphique de la courbe!
|
|

























