Lecture Computational Physics.pptxPhysics Bsc

VoiceofPeople1 8 views 20 slides Oct 10, 2024
Slide 1
Slide 1 of 20
Slide 1
1
Slide 2
2
Slide 3
3
Slide 4
4
Slide 5
5
Slide 6
6
Slide 7
7
Slide 8
8
Slide 9
9
Slide 10
10
Slide 11
11
Slide 12
12
Slide 13
13
Slide 14
14
Slide 15
15
Slide 16
16
Slide 17
17
Slide 18
18
Slide 19
19
Slide 20
20

About This Presentation

Lecture Computational Physics.pptxPhysics Bsc


Slide Content

Computational Physics Course instructor Zohaib Akram Khan Lecturer

Computational physics is the study of scientific problems using computational methods ; it combines computer science, physics and applied mathematics to develop scientific solutions to complex problems. What is computational Physics?

Performs calculations A billion of calculations per second! Remembers results 100s of Giga bytes of storage! What does a computer do?

Built in to the language. Addition-subtraction-division etc Ones that you define as the Programmer. “Computers only know what you tell them” What kinds of Calculations?

INTRODUCTION TO C++ C++ is one of the fastest, popular and most efficient computer language.

APPLICATIONS OF C++ High performance applications Video games Device drivers Web browsers Servers OS (operating systems)

C++ IS USED BY: Adobe Google Microsoft Netflix NASA  National Aeronautics and Space Administration (NASA)

POTENTIAL IN C++ C++ is one of the popular programming language to develop various types of applications. In US an average annual salary of C++ programmer is 117695 USD source: indeed.com

POPULAR IDEs Integrated Development Environment Editor + Build and Debugging tools Debugging The process of finding and fixing errors and bugs in the source code of any software.

POPULAR IDEs M S Visual Studio C Lion Dev-C++ Turbo C++ Code Blocks  Note: we shall use Dev-C++

INSTALLING DEV C++   go to filehippo.com and search DEV C++ in search section

INSTALLING DEV C++   for own convince we will go for older version listed downward.

INSTALLING DEV C++   download by clicking on Download (50.43 MB)

INSTALLING DEV C++   After installation this will be the user interface.

INSTALLING DEV C++   Click on file and then source file to get started.

A program is set of instructions for a computer to follow Whenever we give a computer both a program to follow and some data for the program, we are said to be running the program on the data, and the computer is said to execute the program on the data. What is a program?

Programs that translate a high-level language like C++ to a machine-language that the computer can directly understand and execute. Compilers

C++ program Source Code Compiler Object code for C++ program Linker Object code for other routines Preparing a C++ program for Running

Types of program errors: Syntax errors Violations of the rules of the programming language Run-time errors Detected by computers when the program is run (numeric calcualtions ) Logic errors Mistakes in the underlying algorithm or translating the algorithm into C++ language Testing and Debugging

Thank You
Tags