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

  • Gnuplot Online
  • (plot-01.plt) terminal wxt, ternary operator, style line, border, xtics, ytics, out, nomirror, xzeroaxis, arrow from (x1, y1) to (x2, y2), nohead, dashtype (dt), xlabel, ylabel, sample, linetype (lt), linecolor (lc) rgb, linewidth (lw), notitle, sum [k=... : ...]
  • (plot-01-latex.plt) (plot-01-latex.pdf) terminal cairolatex pdf standalone color, ternary operator, style line, border, xtics, ytics, out, nomirror, xzeroaxis, arrow from (x1, y1) to (x2, y2), nohead, dashtype (dt), xlabel, ylabel, sample, linetype (lt), linecolor (lc) rgb, linewidth (lw), notitle, sum [k=... : ...]
  • (plot-02.plt) terminal wxt, ternary operator, style line, border, xtics, ytics, out, nomirror, mxtics, mytics, grid xtics ytics mxtics mytics, xzeroaxis, sample, linetype (lt), linecolor (lc) rgb, linewidth (lw), for [i=... : ...], title sprintf("{%d}", i)
  • (plot-02-latex.plt) (plot-02-latex.pdf) terminal cairolatex pdf standalone color, ternary operator, style line, border, xtics, ytics, out, nomirror, mxtics, mytics, grid xtics ytics mxtics mytics, xzeroaxis, sample, linetype (lt), linecolor (lc) rgb, linewidth (lw), for [i=... : ...], title sprintf("{%d}", i)
  • (plot-03.plt) (data.zip) terminal wxt, style line, border, xtics, ytics, out, nomirror, mxtics, grid xtics ytics, format y, datafile separator ",", logscale y, linetype (lt), linecolor (lc) rgb, linewidth (lw)
  • (plot-03-latex.plt) (plot-03-latex.pdf) (data.zip) terminal cairolatex pdf standalone color, style line, border, xtics, ytics, out, nomirror, mxtics, grid xtics ytics, format y, datafile separator ",", logscale y, linetype (lt), linecolor (lc) rgb, linewidth (lw)
  • (plot-04.plt) terminal wxt, style line, border, xtics, ytics, out, nomirror, grid xtics ytics, linetype (lt), linecolor (lc) rgb, linewidth (lw), key left top Right
  • (plot-04-latex.plt) (plot-04-latex.pdf) terminal cairolatex pdf standalone color, style line, border, xtics, ytics, out, nomirror, grid xtics ytics, linetype (lt), linecolor (lc) rgb, linewidth (lw), key left top Right
  • (plot-05.plt) terminal wxt, style line, border, arrow from (x1, y1) to (x2, y2), label at (x, y), dashtype (dt)
  • (plot-05-latex.plt) (plot-05-latex.pdf) terminal cairolatex pdf standalone color, style line, border, arrow from (x1, y1) to (x2, y2), label at (x, y), dashtype (dt)
  • (plot-06.plt) terminal wxt, style line, unset border, unset key, unset tics, label at (x, y) lincolor (lc) rgb dashtype (dt), linewidth (lw)
  • (plot-06-latex.plt) (plot-06-latex.pdf) terminal cairolatex pdf standalone color, style line, unset border, unset key, unset tics, label at (x, y) lincolor (lc) rgb dashtype (dt), linewidth (lw)
  • (plot-07.plt) terminal wxt, style line, border front, xtics, ytics out nomirror, y2tics out, mytics, my2tics, ylabel, y2label, axis x1y1, axis x1y2
  • (plot-07-latex.plt) (plot-07-latex.pdf) terminal cairolatex pdf standalone color, style line, border front, xtics, ytics out nomirror, y2tics out, mytics, my2tics, ylabel, y2label, axis x1y1, axis x1y2
  • (plot-08.plt) terminal wxt, sample, border, multiplot layout, ctics, ytics, mxtics, mytics, xzeroaxis, label, xlabel, ylabel, key width ... spacing ..., key front
  • (plot-08-latex.plt) (plot-08-latex.pdf) terminal cairolatex pdf standalone color, sample, border, multiplot layout, ctics, ytics, mxtics, mytics, xzeroaxis, label, xlabel, ylabel, key width ... spacing ..., key front
  • (plot-09-latex.plt) (plot-09-latex.pdf) terminal cairolatex pdf standalone color, splot (sp), xlabel, ylabel, zlabel, xtics out nomirror, ytics out nomirror, ztics out nomirror, mztics, style line, border back, isosamples, hidden3d, set view azimuth(degree), elevation(degree), 1.0, 1.20, contour base, cntrparam order, cntrparam levels, key at screen 1, 1 right top vertical Right noreverse enhanced autotitle nobox
  • (plot-10-latex.plt) (plot-10-latex.pdf) terminal cairolatex pdf standalone color, splot (sp), xlabel, ylabel, zlabel, xtics out nomirror, ytics out nomirror, ztics out nomirror, mztics, style line, border back, isosamples, hidden3d, contour base, cntrparam order ... levels discrete ..., unset surface, key outside
  • (plot-11.plt) (data.zip) terminal wxt, splot (sp), xlabel, ylabel, zlabel, xtics out nomirror, ytics out nomirror, ztics out nomirror, mztics, style line, border back, isosamples, hidden3d, set view azimuth(degree), elevation(degree), 1.0, 1.20, contour base, cntrparam order, cntrparam levels, key at screen 1, 1 right top vertical Right noreverse enhanced autotitle nobox
  • (plot-11-latex.plt) (plot-11-latex.pdf) (data.zip) terminal cairolatex pdf standalone color, splot (sp), xlabel, ylabel, zlabel, xtics out nomirror, ytics out nomirror, ztics out nomirror, mztics, style line, border back, isosamples, hidden3d, set view azimuth(degree), elevation(degree), 1.0, 1.20, contour base, cntrparam order, cntrparam levels, key at screen 1, 1 right top vertical Right noreverse enhanced autotitle nobox
  • (plot-12.plt) (plot-12.gif) terminal gif animate delay, xrange, yrange, sample, do for [i=1: ...] {plot ... title sprintf("t = %.1f", i*0.1)}
  • (plot-13.plt) (plot-13.gif) terminal gif animate delay, parametric, xrange, yrange, sample, do for [i=1: ...] {plot x(t), y(t) ...}, unset tics, unset border
  • (plot-14.plt) (plot-14.gif) terminal gif animate delay, parametric, xrange, yrange, sample, do for [i=1: ...] {plot x(t), y(t) ...}, unset tics, unset border

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)