Function to calculate the nullspace +- HP Forums (https://www.hpmuseum.org/forum) +-- Forum: HP Software Libraries (/forum-10.html) +--- Forum: HP Prime Software Library (/forum-15.html) +--- Thread: Function to calculate the nullspace (/thread-14237.html) |
Function to calculate the nullspace - hamorabi - 12-26-2019 06:07 PM The Prime has built-in functions to calculate the column and row spaces. For some reason, there's no function for the nullspace. I'd like to share this piece of code (written in Python syntax) that calculates the nullspace of a matrix. The left nullspace can be calculate by taking the transpose of the matrix first. Here's a 7x10 random matrix that you can try. PHP Code: [[13,31,27,33,77,47,77,2,95,42][95,60,98,44,84,58,64,89,37,63][9,33,18,13,68,72,34,27,3,95][7,61,12,88,55,24,62,7,37,72][53,2,20,67,33,3,82,73,40,32][71,90,46,45,14,64,95,35,67,7][69,67,9,40,93,34,64,88,25,81]] PHP Code: #cas |