Code for Calculating Constant PI: First, request and get a LONI qb2 or qb3 user account, download free version ssh for w
Posted: Fri Jul 08, 2022 6:38 am
Code for Calculating Constant PI:
First, request and get a LONI qb2 or qb3 user account, download free version ssh for windows if you use MS Windows10 system (Mac does not need ssh), and then do following:
1. Select related compiler and library such as intel C++ and/or Fortran (F90) compiler as your default compiler and library in LONI machines.
2. Write a sample code for calculating constant PI with an accuracy of 12 digit number. You can use random number generator in C or Fortran or other methods, e.g. random function or others.
Project 03 Python Programming
Convert your code in Project 01 into Python code and run it in QB3 or other Linux environment
First, request and get a LONI qb2 or qb3 user account, download free version ssh for windows if you use MS Windows10 system (Mac does not need ssh), and then do following:
1. Select related compiler and library such as intel C++ and/or Fortran (F90) compiler as your default compiler and library in LONI machines.
2. Write a sample code for calculating constant PI with an accuracy of 12 digit number. You can use random number generator in C or Fortran or other methods, e.g. random function or others.
Project 03 Python Programming
Convert your code in Project 01 into Python code and run it in QB3 or other Linux environment