Skip to content

vertingo/sdl2_math_calculator_with_graphical_visual

Repository files navigation

Image

🌐 Apporter votre soutien au projet ❤️ pour de futures évolutions!

GitHub stars GitHub forks GitHub watchers GitHub followers Twitter Follow Facebook YouTube Subscribe

🌐 Calcul d'intégral + plus représentation graphique

App Progress Status Download

Download zip

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!

🌐 Prérequis(NEW VERSION WITH SDL2)

Installation Guide for SDL2 and SDL2_ttf with Code::Blocks

Step 1: Download and Install Code::Blocks

Download Code::Blocks from the following link: Download Code::Blocks

Step 2: Install MinGW Compiler

  1. Download the MinGW compiler from the following link: Download MinGW

  2. Click on Install then Continue.

  3. Select the following options:

    • mingw-developer-toolkit
    • mingw32-base
    • mingw32-gcc-g++
    • msys-base

    MinGW Installation Options

  4. In the Installation menu, click on Apply Changes.

  5. The packages will be downloaded and installed.

  6. Exit the installer.

  7. 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.

    MinGW Postinstall

  8. Confirm with the Enter key.

Step 3: Install SDL2 Library

  1. Download the SDL2 library from the following link: Download SDL2

  2. Access the Download section in the bottom-right of the page.

  3. Once downloaded, unzip the contents of the SDL folder to the root directory of the Code::Blocks installation folder.

    Unzip SDL

  4. Ensure that the include folder contains the SDL folder.

    SDL Include Folder

Step 4: Install SDL2_ttf Library

  1. Download the SDL2_ttf library from the following link: Download SDL2_ttf

  2. Extract the contents and move the required files (like headers and libraries) to the corresponding SDL2 directories in your Code::Blocks installation.

Step 5: Set Up an Empty Project in Code::Blocks

  1. In Code::Blocks, go to File -> New -> Project and choose Empty Project.

  2. Set up the project name and location as desired.

  3. Go to Project -> Build Options.

  4. Under the Search directories tab:

    • Add the path to the include directory for both SDL2 and SDL2_ttf under the Compiler tab.
    • Add the path to the lib directory for both SDL2 and SDL2_ttf under the Linker tab.
  5. Under the Linker settings tab, add the following linker flags:

    • -lmingw32 -lSDL2main -lSDL2 -lSDL2_ttf
  6. Copy the necessary .dll files (SDL2.dll and SDL2_ttf.dll) from the SDL2 and SDL2_ttf folders to the same directory where your compiled program will run (typically the project’s bin directory).

Architecture Considerations

  • 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.

Step 6: Compile and Run

  1. Compile your project by hitting F9 or selecting Build and Run.

  2. The program should run if all settings are correct and the .dll files are in the correct directory.

This guide sets up a basic project environment for SDL2 and SDL2_ttf in Code::Blocks, ready for development.

🌐 Prérequis(OLD VERSION WITH SDL1 SEE THE BRANCH FOR SDL1)

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/

  1. Cliquez sur install puis continue
  2. Choisir mingw-developper-toolkit, mingw32-base, mingw32-gcc g++, msys-base comme sur la capture ci-dessous:

4) Puis dans le menu « Installation » cliquez sur « Apply changes » 5) Les packages sont alors téléchargés 6) Quittez 7) Exécutez « C:\MinGW\msys\1.0\postinstall », aux questions posées, répondre a. y (yes) b. y (yes) c. Donnez le chemin d’installation de mingw, c’est-à-dire à la racine du disque c: c:\mingw

d. validez avec la touche entrée

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!

🌐 Usage

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!  

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published