Department of Physics

University of Qom


  • Home
  • Publications
  • Students
  • Courses
  • Others

Useful Items

  • Install TexLive, XePersian Fonts (mp4) (zip)
  • Latex Template for Thesis (zip)

Gnuplot

  • Online Plotting
  • Sample-1 (script)

Matplotlib

  • Creating multiple subplots using plt.subplots
  • Latex Render plt.rcParams

Arguments in a function

  • Sample-1 ( ipynb)
  • Sample-2 ( ipynb)

Introduction to Python Programming

  • Install Compilers and Editors
    • Lecture-01(mp4)(pdf)(Anaconda and Spyder)
    • Lecture-02(mp4)(pdf)(Python)
    • Lecture-03(mp4)(pdf)(Pycharm)
  • Initial Variable Assignments, input() Method Reads, Arithmetic Operators, Assignment Operators:
    • Lecture-04(mp4)(py)
    • Lecture-05(mp4)(py)
  • Relational Operators, Membership and Identity Operators, Logical Operators and Conditional Statements:
    • Lecture-06(mp4)(py)
  • String, Membership Operators , Substring, Slicing, Concatenation, Repetition Operators, Employ format in print function:
    • Lecture-07(mp4)(py)
  • Data structures, Tuples, Lists, Ranges:
    • Lecture-08(mp4)(py)
  • Loops and Flow controls:
    • Lecture-09(mp4)(py)
  • Functions:
    • Lecture-10(mp4)(py)
  • Input and Output from file:
    • Lecture-11(mp4) (py) (txt) (txt) (txt) (txt) (txt) (txt)
  • Modules:
    • Lecture-12(mp4)(py) (py) (py)
  • numpy part-1:
    • Lecture-13(mp4)(py)
  • numpy part-2:
    • Lecture-14(mp4)(py)
  • numpy.linalg and numpy.loadtxt and numpy.savetxt:
    • Lecture-15(mp4) (py) (txt) (txt)
  • matplotlib:
    • Lecture-16(mp4)(py)

    Introduction to C++ Programming

  • Week-01: Install MinGW compilers, Dev-C++ and Code::Lite IDEs
    • Lecture-01 (part 1)(mp4)(pdf)
    • Lecture-01 (part 2)(mp4)
    • Lecture-01 (part 3)(mp4)
  • Week-02: create a source file in Dev-C++, iostream library, cout, endl, comments, using namespace, using namespace std, cin.get(), run executable file and create a project in Dev-C++
    • Lecture-02(mp4)(code)(pdf)
    • Lecture-03(mp4)(code)(project)
  • Week-03: integer types, int, unsigned int, long int, define variables, initialize variables, signature code, cin, "\n", + - * / % operatores for integer type and sizeof
    • Lecture-04(mp4)
    • Lecture-05(mp4)(code)
    • Lecture-06(mp4)(code)
  • Week-04: increment and decrement operators, compound assignment operators, system("pause"), real types, float, double, initialize variable, + - * / operators, convert integer type to double type by static_cast< double > (), boolean type, bool, true, false, cout << boolalpha, relationa and comparison operators and logical operators
    • Lecture-07(mp4)(code)
    • Lecture-08(mp4)(code)
    • Lecture-09(mp4)(code)
    • Lecture-10(mp4)(code)
  • Week-05: string type, control structures, decision structures, loop structures, local variables, global variables
    • Lecture-11(mp4)(code)
    • Lecture-12(mp4)(code)(code)
    • Lecture-13(mp4)(code)
    • Lecture-14(mp4)(code)
  • Week-06: roots of a quadratic equation, factorial, fibonacci, multiplication table, break, continue, while, do-while, digit sum, prime number
    • Lecture-15(mp4) (code) (code) (code) (code)
    • Lecture-16(mp4) (code)
    • Lecture-17(mp4) (code) (code)
  • Week-07: Power expansion, Exponential expansion, Conditional Ternary operator, not use {} in single line code in if and for bodies, "==' for integer and float type values, function, retuen form and void form, prototype coding
    • Lecture-18(mp4) (code) (code)
    • Lecture-19(mp4) (code)
    • Lecture-20(mp4) (code) (code)
    • Lecture-21(mp4) (code) (code)
  • Week-08: Recursive functions, Overloading funcyions, template functions,"cmath" intrinsic math functions, void form functions
    • Lecture-22(mp4) (code) (code) (code) (code)
    • Lecture-23(mp4) (code) (code)
    • Lecture-24(mp4) (code)
    • Lecture-25(mp4) (code) (code) (code) (code)
  • Week-09: 1D and 2D Arrays, functions with 1D arrays, functions with 2D arrays
    • Lecture-26(mp4) (code) (code)
    • Lecture-27(mp4) (code)
    • Lecture-28(mp4) (code)
  • Week-10: 1D and 2D Arrays with vector type, 1D arrays functions with vector type, 2D arrays functions with vector type, assert library, ofstream for output file, ifstream for input file .is_open, .close, for rewind file use .clear and .seekg(0)
    • Lecture-29(mp4) (code) (code)
    • Lecture-30(mp4) (code)
    • Lecture-31(mp4) (code) (code)
  • Week-11: Header cstdlib, rand (), srand (), header ctime, srand (time(0)), uniform integer random [a, b], uniform real random [a, b), references and pointer variables
    • Lecture-32(mp4) (code) (code)
    • Lecture-33(mp4) (code)
    • Lecture-34(mp4) (code)
    • Lecture-35(mp4) (code) (code) (code) (code)
  • Week-12: Function with pointer arguments, 1D and 2D dynamic arrays with pointers, pointer functions
    • Lecture-36(mp4) (code) (code) (code) (code)
    • Lecture-37(mp4) (code) (code)
    • Lecture-38(mp4) (code) (code)
  • Week-13: Library cstdio, printf, fprintf, format of data, character and string, create header files in DevCpp and CodeLite
    • Lecture-39(mp4) (code) (code)
    • Lecture-40(mp4) (code) (code)
    • Lecture-41(mp4) (project) (project)
    • Lecture-42(mp4) (project) (project)
  • Week-14: Struct examples on complex variable and 3D vector
    • Lecture-43(mp4) (project)
    • Lecture-44(mp4) (project)
  • Week-15: Struct example on 2D vector and matrix, Class on circle and cylinder shpaes
    • Lecture-45(mp4) (project)
    • Lecture-46(mp4) (project)
  • Week-16: Class on complex variables
    • Lecture-47(mp4) (project)
    • Lecture-48(mp4) (project)