{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "# Introduction: The basics of Notebook\n", "\n", "You can write standard Python:\n", "\n", "\\begin{equation}\n", "\\int_0^\\infty f(x) dx\n", "\\end{equation}" ] }, { "cell_type": "code", "execution_count": 1, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "-1.0\n", "3.141592653589793\n" ] }, { "data": { "text/plain": [ "6.283185307179586" ] }, "execution_count": 1, "metadata": {}, "output_type": "execute_result" } ], "source": [ "from math import *\n", "print(cos(pi))\n", "print(pi)\n", "2*pi" ] }, { "cell_type": "code", "execution_count": 2, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "['__doc__', '__file__', '__loader__', '__name__', '__package__', '__spec__', 'acos', 'acosh', 'asin', 'asinh', 'atan', 'atan2', 'atanh', 'ceil', 'comb', 'copysign', 'cos', 'cosh', 'degrees', 'dist', 'e', 'erf', 'erfc', 'exp', 'expm1', 'fabs', 'factorial', 'floor', 'fmod', 'frexp', 'fsum', 'gamma', 'gcd', 'hypot', 'inf', 'isclose', 'isfinite', 'isinf', 'isnan', 'isqrt', 'ldexp', 'lgamma', 'log', 'log10', 'log1p', 'log2', 'modf', 'nan', 'perm', 'pi', 'pow', 'prod', 'radians', 'remainder', 'sin', 'sinh', 'sqrt', 'tan', 'tanh', 'tau', 'trunc']\n", "3.321928094887362\n", "3.3219280948873626 3.321928094887362\n" ] } ], "source": [ "import math\n", "from scipy import *\n", "from numpy import *\n", "print(dir(math))\n", "print( log2(10) )\n", "print( math.log(10,2), math.log2(10) )\n", "#info(log2)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## Two modes\n", "\n", "**Command Mode** and **Edit Mode**\n", "\n", "\"Return\" and \"Esc\" to switch between **Command** and **Edit** modes\n", "\n", "**To Execute** : \"Shift Return\"\n", "\n", "**To return to Edit mode** : \"Return/double click\"\n", "\n", "**hide long cell output** double click" ] }, { "cell_type": "code", "execution_count": 3, "metadata": { "collapsed": true }, "outputs": [ { "data": { "text/plain": [ "b'\\n\\n
\\n\\n\\n\\n\\n\\n | \\n | Computational Physics 2023, Course 509 - Physics Applications of Computers | \\n||
\\n \\n \\n \\n Overview \\n Introductory lecture material \\n Programming \\n Basic numerical methods \\n Methods and Algorithms \\n | \\n \\n | \\n\\n \\n \\n \\n Left: Simulation of a bacteria growth by DLA method, Right: Molecular dynamics simulation of a small system of atoms\\n Simulation codes is available to download in lecture material.\\n \\n\\n \\n This course introduces algorithmic concepts and familiarizes\\n students with the basic computational tools which are essential\\n for graduate students in computational physics, but are also very useful to most graduate students in STEM and related\\n areas, as well as to those students who plan to look for a job in the IT industry.\\n \\n Class Time: ARC 205 3:50pm-5:10pm Tuesday and Thursday \\n
\\n \\n \\n \\n \\n\\tCodes available at https://github.com/haulek/CompPhysics \\n\\t \\n\\tYoutube videos from 2021:\\n\\tLecture 1,\\n\\tLecture 2,\\n\\tLecture 3,\\n\\tLecture 4,\\n\\tLecture 5,\\n\\tLecture 6,\\n\\tLecture 7,\\n\\tLecture 8,\\n\\tLecture 9,\\n\\tLecture 10,\\n\\tLecture 11,\\n\\tLecture 12,\\n\\tLecture 13,\\n\\tLecture 14,\\n\\tLecture 15,\\n\\tLecture 16,\\n\\tLecture 17,\\n\\tLecture 18,\\n\\tLecture 19,\\n\\tLecture 20,\\n\\tLecture 21,\\n\\tLecture 22,\\n\\tLecture 23,\\n\\tLecture 24,\\n\\tLecture 25,\\n\\tLecture 26\\n\\t \\n\\t \\n Preliminary Course Outline and Tentative List of Topics include \\n
\\n Source code: https://github.com/haulek/CompPhysics \\n \\n
\\n \\n Homeworks: \\n\\n C) Monte Carlo and Simulated Annealing\\n
\\n Alternative implementation of Ising: online Ising model simulation\\n \\n\\n D) Machine Learning\\n
\\n E) Parallel Programing\\n
\\n\\n\\t \\n G) More advanced topics in Computational Condensed Matter physics:\\n\\t
\\n\\n \\n \\n \\n \\n \\n \\n \\n | \\n \\n