Pyspark, Finite Element Analysis, Mathematical Modeling, Databricks.
np.zeros((1,number_of_elements+1)) T = np.zeros((2, number_of_elements)) for k in range(0, number_of_elements+1): P[0,k] = left + k * h if k <= number_of_elements-1: T[0,k] = k T[1,k] = k+1 else: pass print(P) print(T) The code represents matrices P and T defined below: From here, we usually grab