Navigation

  • index
  • next |
  • A very basic introduction to scientific Python programming »

A very basic introduction to scientific Python programming¶

Contents:

  • A very basic introduction to scientific Python programming
  • Variables, loops, lists, and arrays
    • Getting access to Python
    • Mathematical example
    • A program for evaluating a formula
    • Formatted output with text and numbers
    • While loops
    • Lists
    • For loops
    • Arrays
    • Mathematical functions
    • Plotting
  • Functions and branching
    • Functions
    • A more general mathematical formula
    • If tests
    • Array view versus array copying
    • Linear systems
  • Files
    • File reading
    • File writing
  • Classes
    • A very simple class
    • A class for representing a mathematical function
  • Exercises
    • Exercise 1: Program a formula
    • Exercise 2: Combine text and numbers in output
    • Exercise 3: Program a while loop
    • Exercise 4: Create a list with a while loop
    • Exercise 5: Program a for loop
    • Exercise 6: Write a Python function
    • Exercise 7: Return three values from a Python function
    • Exercise 8: Plot a function
    • Exercise 9: Plot two functions
    • Exercise 10: Measure the efficiency of vectorization

Index¶

  • Index

Logo

Table Of Contents

  • A very basic introduction to scientific Python programming
  • Index

Next topic

A very basic introduction to scientific Python programming

This Page

  • Show Source

Quick search

Navigation

  • index
  • next |
  • A very basic introduction to scientific Python programming »


©H. P. Langtangen.