Material Sharing
Basic numerical simulation of mathematical modelling of biological systems.
Tips on how to install GNU Compiler Collection (gcc compiler) to run C, C++, Fortran, etc.
1. First download the MinGW from the below url:
MinGW-w64 - for 32 and 64 bit Windows
https://sourceforge.net/projects/mingw-w64/
2. Install the downloaded MinGW whether 32 bit or 64 bit
3. Set the Environment variable (if you don't have administrator right):
Control Panel-->View by-->Small Icons-->User Account-->Change Environment Variables
For example:
-->User Variables-->Select Variable Path-->Edit-->New-->Type C:\Program Files\mingw-w64\x86_64-8.1.0-posix-seh-rt_v6-rev0\mingw64\bin
-->click OK
4. You can use Geany as an IDE Editor download from https://www.geany.org/
5. Test if you have installed and setup the environment variable properly:
For testing C++ :
Type the below code and save with the file name HelloWorld.cpp
----------------------------------------------------------------------------------------------------
#include <iostream>
int main() {
std::cout << "Hello World!\n";
return 0;
}
----------------------------------------------------------------------------------------------------
In Geany Editor, click the Compile icon, -->Compilation finished successfully.
Then click the Build icon, --> Compilation finished successfully.
Finally click the Execute icon to run the exe
output--> Hello, World!
Yes, your C++ compiler is working!
For testing Fortran:
Type the below code and save with the file name HelloWorld.F95
---------------------------------------------------------------------------------------------------
program HelloWorld
implicit none
print *, "Hello, World!"
print *, "Yes, my Fortran compiler is working!"
end program HelloWorld
--------------------------------------------------------------------------------------------------
In Geany Editor, click the Compile icon, -->Compilation finished successfully.
Then click the Build icon, --> Compilation finished successfully.
Finally click the Execute icon to run the exe
output--> Hello, World!
Yes, my Fortran compiler is working!
6. Congratulations your compiler is working!
Tips on how to install GNU Compiler Collection (gcc compiler) to run C, C++, Fortran, etc.
1. First download the MinGW from the below url:
MinGW-w64 - for 32 and 64 bit Windows
https://sourceforge.net/projects/mingw-w64/
2. Install the downloaded MinGW whether 32 bit or 64 bit
3. Set the Environment variable (if you don't have administrator right):
Control Panel-->View by-->Small Icons-->User Account-->Change Environment Variables
For example:
-->User Variables-->Select Variable Path-->Edit-->New-->Type C:\Program Files\mingw-w64\x86_64-8.1.0-posix-seh-rt_v6-rev0\mingw64\bin
-->click OK
4. You can use Geany as an IDE Editor download from https://www.geany.org/
5. Test if you have installed and setup the environment variable properly:
For testing C++ :
Type the below code and save with the file name HelloWorld.cpp
----------------------------------------------------------------------------------------------------
#include <iostream>
int main() {
std::cout << "Hello World!\n";
return 0;
}
----------------------------------------------------------------------------------------------------
In Geany Editor, click the Compile icon, -->Compilation finished successfully.
Then click the Build icon, --> Compilation finished successfully.
Finally click the Execute icon to run the exe
output--> Hello, World!
Yes, your C++ compiler is working!
For testing Fortran:
Type the below code and save with the file name HelloWorld.F95
---------------------------------------------------------------------------------------------------
program HelloWorld
implicit none
print *, "Hello, World!"
print *, "Yes, my Fortran compiler is working!"
end program HelloWorld
--------------------------------------------------------------------------------------------------
In Geany Editor, click the Compile icon, -->Compilation finished successfully.
Then click the Build icon, --> Compilation finished successfully.
Finally click the Execute icon to run the exe
output--> Hello, World!
Yes, my Fortran compiler is working!
6. Congratulations your compiler is working!
Resource links
1. Free open textbook https://textbooks.opensuny.org
2. Open course https://www.coursera.org
3. Online English checking of your writing http://www.hemingwayapp.com
4. To learn Python programming I recommend you to use Anaconda https://www.anaconda.com/
2. Open course https://www.coursera.org
3. Online English checking of your writing http://www.hemingwayapp.com
4. To learn Python programming I recommend you to use Anaconda https://www.anaconda.com/