Some of Python's linalg commands in HP Prime
09-08-2021, 10:10 PM
Post: #6
 robmio Member Posts: 170 Joined: Jan 2020
RE: Some of Python's linalg commands in HP Prime
(05-08-2021 01:49 PM)Eddie W. Shore Wrote:  Matrix Format [ [ row ], [ row ], … [ row ] ]

linspace(start, stop, number of points desired + 1)

arange(start, stop, step size); default step size: 1; returns a 1 row array from start to stop using step size

identity(n): returns an identity matrix as n x n

transpose(matrix): transpose of a matrix

inv(matrix): inverse of a matrix

shape(matrix): returns the dimensions of the matrix in an ordered pair (row, columns)

rref(matrix): row reduced echelon form of a matrix

det(matrix): determinant of a square matrix

peval(array of coefficients, x): polynomial evaluation (order is from high to low), can take complex arguments

horner(array of coefficients, x): polynomial evaluation using Horner’s method

pceoff(array of roots): returns an array representing a polynomial’s coefficients, can take complex arguments

proot(array of coefficients): returns an array of roots, can take complex arguments

sub(array, array) or sub(matrix, matrix): subtraction element by element

dot(array, array): dot product

cross(array, array): cross product

imag(complex number): imaginary part – works on arrays and matrices

real(complex number): real part – works on arrays and matrices

I believe that fft and ifft have to do with fast fourier transforms.

Hi, I found it difficult to transpose a matrix with PYTHON. For instance:
transpose ([[1,2,3], [4,5,6]]) gives me this result: [[1,4], [3,2], [5,6]]
The correct result is: [[1,4], [2,5], [3,6]].
Is there a bag perhaps?
 « Next Oldest | Next Newest »

 Messages In This Thread Some of Python's linalg commands in HP Prime - Eddie W. Shore - 05-08-2021, 01:49 PM RE: Some of Python's linalg commands in HP Prime - cdmackay - 05-08-2021, 11:00 PM RE: Some of Python's linalg commands in HP Prime - John Keith - 05-09-2021, 05:36 PM RE: Some of Python's linalg commands in HP Prime - Eddie W. Shore - 05-09-2021, 05:58 PM RE: Some of Python's linalg commands in HP Prime - cdmackay - 05-11-2021, 06:47 PM RE: Some of Python's linalg commands in HP Prime - robmio - 09-08-2021 10:10 PM RE: Some of Python's linalg commands in HP Prime - parisse - 09-10-2021, 04:55 AM RE: Some of Python's linalg commands in HP Prime - robmio - 09-11-2021, 09:13 AM RE: Some of Python's linalg commands in HP Prime - Albert Chan - 09-11-2021, 10:36 AM RE: Some of Python's linalg commands in HP Prime - robmio - 09-11-2021, 11:17 AM RE: Some of Python's linalg commands in HP Prime - Ioncubekh - 10-27-2022, 07:43 PM RE: Some of Python's linalg commands in HP Prime - Ioncubekh - 11-02-2022, 02:20 AM

User(s) browsing this thread: 1 Guest(s)