Universiteit Stellenbosch University
Applied MathematicsToegepaste Wiskunde

English Lecturer:Engelse Dosent:

Prof Nick Hale,
A410, nickhale@sun.ac.za

Afrikaans Lecturer:Afrikaans Dosent:

MsMe Melise Steyn,
A219, melisesteyn@sun.ac.za

If this website doesn't load properly, make sure you use the https version:As hierdie webtuiste nie wil laai nie, maak seker dat jy van die https weergawe gebruik maak:

Important notices:Belangrike kennisgewings:

  • Marks for CA05 available here.
  • UPDATED Assignment 06 available here. (Updates in red.)
  • Please complete online teaching feedback here.
  • My solution to 10 digit problem number 3 can be found here.
  • Memo for CA05 here. Videos here: P1 (30Mb), P2 (16Mb), P3 (19Mb), P4 (24Mb) P4b (22Mb) P5 (37Mb) P7 (9Mb)
  • A1 memo herehier. Videos here: Videos hier: P1&2, P3, P4, P5, P6&7, P8&9.

A2 test:A2 toets:

  • Test A2 is scheduled for 01 November. Please see the table below for your session. Toets A2 is geskeduleer vir 01 November. Raadpleeg die tabel onder vir jou sessie.
  • Regarding the scope of A2, we follow the Faculty of Engineering's official guideline on Flexible Assessment which states that "A2 normally covers the work of the whole semester, but with the emphasis on the work done after the test week".Wat betref die omvang van A2, ons volg die Ingenieursfakulteit se amptelike riglyne vir Buigsame Assessering wat stel dat "A2 dek normaalweg die werk van die hele semester, maar met die klem op die werk wat na die toetsweek behandel is".
  • Students with extra writing time MUST write in the second session in venue S203.Students with extra writing time MUST write in the second session in venue S203./li>
  • Contact Prof Hale (nickhale@sun.ac.za) if you have a timetable clash.Kontak Prof Hale (nickhale@sun.ac.za) as jy 'n roosterbotsing het.
  • Time Surname Venue
    N->Z S207
    16:45-18:45Extra time & AS203

    Information Sheet and Outcomes:Inligtingstuk and Uitkomste:

    • Information Sheet can be found here (afr) and here (eng). Inligtingstuk kan hier (afr) en hier (eng) gevind word.
    • Outcomes can be found here (afr) and here (eng). Uitkomste kan hier (afr) en hier (eng) gevind word.


    Your document must be prepared in MATLAB's Live Script format. Use this template (Right click > Save link as...). Jou dokument moet in MATLAB se Live Script format formaat voorberei word. Gebruik hierdie templaat. (Right click > Save As)

    Make sure the assignment number is shown at the top, as well as your surname and student number. Maak seker die nommer van die opdrag verskyn bo-aan, sowel as jou van, naam en studentenommer.

    You should hand in two identical PDFs of your assignment (in LIVE EDITOR > Save > Export to PDF): Jy moet twee identiese PDFs van jou opdrag inhandig (in LIVE EDITOR > Save > Export to PDF) :

    • One printed copy in the locked box across from A307/A308. Een gedrukte kopie in die toesluit kas oorkant A307/A308.
    • One electronic copy here: Een elektroniese kopie hier:

    Assignments submitted in only one format may not be marked! The markers will mark the hard copy. The electronic copy will be used for plagiarism checks and as a backup in case your hard copy gets misplaced. Plagiarism will not be tolerated.
    Opdragte wat net in een van die formate ingehandig word mag dalk nie gemerk word nie. Die nasieners merk die gedrukte stuk. Die elektroniese kopie word gebruik vir plagiaattoetse en rugsteun as jou gedrukte stuk dalk vermis raak. Plagiaat sal nie geduld word nie.

    Hints for the current assignment will be given in the blue box below. Common mistakes are listed in the green box. Wenke vir die huidige opdrag word in die blou boksie hieronder gegee. Algemene foute word in die groen blokkie gelys.

    Assignment Opdrag Due Sper Solution Oplossing Videos Videos Marks Punte
    assign1.pdf 02/08 solns1.pdf marks1.pdf
    assign2.pdf 16/08 solns2.pdf P0 (3Mb), P1 (33Mb), P2 (15Mb), P3a (50Mb), P3e (47Mb) marks2.pdf
    assign3.pdf 30/08 solns3.pdf P1 (55Mb), P2 (35Mb), P3 (20Mb), P4 (30Mb), P5 (23Mb) marks3.pdf
    assign4.pdf 27/09 solns4.pdf (weather.mat), P1 (16Mb), P2 (51Mb), P3 (41Mb), P4 (21Mb) marks4.pdf
    assign5.pdf 11/10 solns5.pdf P1 (30Mb), P2 (16Mb), P3 (19Mb), P4 (24Mb) P4b (22Mb) P5 (37Mb) P7 (9Mb) marks5.pdf
    assign6.pdf 25/10 solns6.pdf marks6.pdf

    Hints for Assignment 6Wenke vir Opdrag 6:

    • Use the latest version of the assignment PDF (contains updated values in red text).
    • P1: Take g = 9.8, not 9.81 (or you'll get the wrong answer!)
    • P1: Use the initial condition v(0) = 0 as in the Lecture slides.
    • P1a: If [t,v] = ode45(...) the v(10) is not the value you're looking for - why?
    • P1a: The opts from odeset structure should be passed to ode45, i.e., [t, v] = ode45(f, tspan, v0, opts);.
    • P4: I suggest you first construct the matrix A by hand, then write code to make the 5x5 matrix, then the 500x500.

    Common mistakes in assignments:Algemene Foute in Opdragte:

    • Use the template. Gebruik die templaat. (Right click > Save link as...)
    • Do not use spaces in file or directory (folder) names. Moenie spasies gebruik in jou teksleer of 'folder' ('directory') name nie.
    • Make sure the assignment number is shown at the top of your Live script, as well as your name and student number. Maak seker die nommer van die opdrag verskyn bo-aan jou Live script, sowel as jou van, naam en studentenommer.
    • The PDF you submit should show the output of each question. In other words, run the entire Live script (Run All) before exporting to PDF. The markers need to see the output, not just the code lines. Die PDF wat jy inhandig moet die afvoer van elke vraag vertoon. Maw, voer die hele Live script uit (Run All) voordat jy die PDF skep. Die merkers wil die afvoer sien, nie net die lyne kode nie.
    • File names should not start with numeric characters, only alphabetic. Jou teksleer se naam moenie met numeriese karakters begin nie, slegs alfabeties.
    • You should use Section Breaks to break up the questions in the script. Jy moet "Section Breaks" gebruik om die vrae in jou teksleer te skei.
    • Do not copy the output lines ans = ... from the command line to the publish script. Moenie die afvoerlyne ans = ... vanaf die bevelskyn kopieer na die 'publish' dokument nie.
    • Seriously. DO NOT USE SPACES in file and/or directory (folder) names. Ernstig nou, MOENIE SPASIES GEBRUIK in jou teksleer of 'folder' name nie.

    Lecture timetable:Lesingrooster:

    • TuesdayDinsdag 08:00: K302 (Afr)
    • TuesdayDinsdag 09:00: K302 (Eng)
    • ThursdayDonderdag 08:00: K302 (Afr)
    • ThursdayDonderdag 10:00: A1001 (Eng)


    • ThursdayDonderdag 12:00: S207A, S207B, S203
    • If you don't need help with your assignment
      you are under no obligation to attend the practical.
      As jy nie hulp met jou opdrag nodig het nie is jy
      onder geen verpligting om die prakties by te woon nie.
    • Lab etiquette: Before asking for help please try to find answers
      first in the blue box above, then on the lecture slides or videos.
      Lab maniere: Voordat jy vir hulp vra, probeer eers antwoorde kry
      in die blou boksie bo, dan op die lesingnotas of die videos.

    Assessment dates:Datums vir assessering:

    A1: 6 September A2: 01 November A3: 21 November
    The official document on flexible assessment can be found here. Die amptelike dokument oor buigsame assessering kan hier gevind word.

    Old tests:Ou toetse:

    Test 1 Toets 1 Solutions Oplossing Test 2 Toets 2 Solutions Oplossing
    test01_2018.pdf test01_2018_memo.pdf test02_2018.pdf test02_2018_memo.pdf

    Course texts:Handboeke:

    The textbook should be considered supplemental, rather than compulsory (i.e., you don't need it). The hardcopy is currently out of print, but the electronic copy may be purchased online via the link above if you want it. Die handboek moet as aanvullend beskou word, eerder as verpligtend (d.w.s. jy benodig dit nie). Die harde kopie is tans onbeskikbaar, maar die elektroniese kopie kan aanlyn gekoop word as jy dit wil aanskaf.

    textbook1 textbook2

    Lecture notes:Lesingnotas:

    The fact that the lecture slides are available here should not be taken as invitation to skip class.
    Not everything covered in class appear on these slides.
    Die feit dat die klasnotas hier beskikbaar is moenie gesien word as aanmoediging om klas te bank nie.
    Nie alles wat in die klas behandel is verskyn op hierdie notas nie.

    • Week 1: Introduction to MATLAB Inleiding tot MATLAB, AppendixAanhangsel A1-A6
      • LectureLesing 1: lecture01a.pdf (afr) & lecture01e.pdf (eng) - Introduction to MATLAB (Basics, A1-A3)Inleiding tot MATLAB (Basiese beginsels, A1-A3)
      • LectureLesing 2: lecture02a.pdf (afr) & lecture02e.pdf (eng) - Introduction to MATLAB (Arrays A4-A5)Inleiding tot MATLAB (Skikkings, A4-A5)
      • LectureLesing 3: lecture03a.pdf (afr) & lecture03e.pdf (eng) - Introduction to MATLAB (Plotting A6)Inleiding tot MATLAB (Grafieke, A6)
    • Week 2 (31 Jul, 1 Aug): Introduction continued Inleiding vervolg, Appendix A5, A7-A8, A11 Aanhangsel A5, A7-A8, A11
      • LectureLesing 4: lecture04a.pdf (afr) & lecture04e.pdf (eng) - Introduction to MATLAB (Functions and scripts) Inleiding tot MATLAB (Funksies en "scripts")
      • LectureLesing 5: lecture05a.pdf (afr) & lecture05e.pdf (eng) - Introduction to MATLAB (Programming in MATLAB)Inleiding tot MATLAB (Programmering in MATLAB)
    • Week 3 (06 Aug, 08 Aug): Solving nonlinear equations Die oplossing van nie-lineere vergelykings, 3.1-3.6
      • LectureLesing 6: lecture06a.pdf (afr) & lecture06e.pdf (eng) - Solving nonlinear equations (Bisection) Oplos van nie-lineere vergelykings (Bisection)
      • LectureLesing 7: lecture07a.pdf (afr) & lecture07e.pdf (eng) - Solving nonlinear equations (Regula-Falsi, Newton, secant) Oplos van nie-lineere vergelykings (Regula-Falsi, Newton, secant)
    • Week 4 (13, 15 Aug): Solving nonlinear equations Oplos van nie-lineere vergelykings, 3.8-3.10
      • LectureLesing 8: lecture08a.pdf (afr) & lecture08e.pdf (eng) - Solving nonlinear equations (fzero, roots, fimplicit) Oplos van nie-lineere vergelykings (fzero, roots, fimplicit)
      • YouTube clip of natural frequencies in cantilever beamYoutube video van natuurlike frekwensies in "cantilever" balk : https://youtu.be/Z_JSNxNXEjo?t=10
      • LectureLesing 9: lecture09a.pdf (afr) & lecture09e.pdf (eng) - Systems of equations, more MATLAB graphicsStelsels van vergelykings, meer MATLAB grafika
    • Week 5 (20, 22 Aug): Linear equations 4.1-4.2, 4.5-4.6, 4.8-4.9 Lineere vergelykings 4.1-4.2, 4.5-4.6, 4.8-4.9
      • LectureLesing 10: lecture10a.pdf (afr) & lecture10e.pdf (eng) - Solving linear equations (Gaussian elimination) Oplos van lineere vergelykings (Gaussiese eliminasie)
      • LectureLesing 11: lecture11a.pdf (afr) & lecture11e.pdf (eng) - Solving linear equations (LU, sparse) Oplos van lineere vergelykings (LU, sparse)
    • Week 6 (27, 29 Aug): Linear equations 4.10-4.11, 5.1-5.2, 5.7 Lineere vergelykings 4.10-4.11, 5.1-5.2, 5.7,
    • Week 7 (17, 19 Sept): Curve fitting and interpolation Krommepasssing en interpolasie, 6.1-6.5
    • Week 8 (26 Sept): Spline interpolation Krommepasssing en interpolasie, 6.6
    • Week 9 (1, 3 Oct): Numerical differentiation/integration Numeriese differensiasie/integrasie, 8.1-8.2, 8.4-8.5, 8.10 9.1, 9.3-9.4
    • Week 10 (8, 10 Oct): ODEs: Initial-value Problems GDVs: Aanvangswaardeprobleme, 9.5-9.7, 10.1, 10.2.1, 10.2.3, 10.3, 10.4, 10.5
    • Week 11 (15, 17 Oct): ODEs: Boundary-value Problems DVs: Randwaardeprobleme, 10.8, 10.9, 10.10, 11.1, 11.3, 11.4
    • Week 12 (22, 24 Oct):
      • LectureLesing 23: lecture23a.pdf (afr) & lecture23e.pdf (eng) - PDES (Laplace eqn, finite differences), Extra notesEkstra notas
      • LectureLesing 24: No new lecture notes, we shall finish lecture 23 and wrap-up. Geen nuwe lesingnotas, ons sal lesing 23 afhandel en opsom.

    Useful links:Nuttige skakels: