Code Examples

From phys660
Jump to navigationJump to search

MATLAB

MATLAB tutorial

  • rfib.m
  • gquad_solver.m (good programming to solve quadratic equation)
  • bquad_solver.m (bad programming to solve quadratic equation)
  • TEST: Apply both qguad_solver.m and bquad_solver.m to find the roots of <math> x^2 -(10^7 + 10^{-7})x + 1 </math

Project 1

Project 2

  • chaos_balls.m

Project 3

  • four_atom_chain.m

Project 4

Project 5

  • wave_packet_cn.m

FPU simulation and FPU1 function

Fortran 90

Python