Home > Python > Introduction to Numpy

Ch. 7.2 Array Creation

Chapters Index
Program 1

Array Creation

Python 3.11 Ready

                                
Click "Run Code" to execute script and render figures.

Mathematical Problem Formulation

Creating 1D array
Program 2

Array Creation

Python 3.11 Ready

                                
Click "Run Code" to execute script and render figures.

Mathematical Problem Formulation

Creating 2D array
Program 3

Array Creation

Python 3.11 Ready

                                
Click "Run Code" to execute script and render figures.

Mathematical Problem Formulation

Array of zeros
Program 4

Array Creation

Python 3.11 Ready

                                
Click "Run Code" to execute script and render figures.

Mathematical Problem Formulation

Array of Ones
Program 5

Array Creation

Python 3.11 Ready

                                
Click "Run Code" to execute script and render figures.

Mathematical Problem Formulation

Array with Evenly Spaced Values
Program 6

Array Creation

Python 3.11 Ready

                                
Click "Run Code" to execute script and render figures.

Mathematical Problem Formulation

Range of numbers
Program 7

Array Creation

Python 3.11 Ready

                                
Click "Run Code" to execute script and render figures.

Mathematical Problem Formulation

Numpy Linear space endpoint
Program 8

Array Creation

Python 3.11 Ready

                                
Click "Run Code" to execute script and render figures.
Program 9

Array Creation

Python 3.11 Ready

                                
Click "Run Code" to execute script and render figures.

Mathematical Problem Formulation

Numpy Logscale
Program 10

Array Creation

Python 3.11 Ready

                                
Click "Run Code" to execute script and render figures.

Mathematical Problem Formulation

Logspace with base 2
Program 11

Array Creation

Python 3.11 Ready

                                
Click "Run Code" to execute script and render figures.

Mathematical Problem Formulation

Identity Matrix
Program 12

Array Creation

Python 3.11 Ready

                                
Click "Run Code" to execute script and render figures.

Mathematical Problem Formulation

Random array uniform distribution
Program 13

Array Creation

Python 3.11 Ready

                                
Click "Run Code" to execute script and render figures.

Mathematical Problem Formulation

Random Array Normal distribution
Program 14

Array Creation

Python 3.11 Ready

                                
Click "Run Code" to execute script and render figures.

Mathematical Problem Formulation

Maximum and minimum value