Skip to content
#

math

Here are 3,898 public repositories matching this topic...

sgsokol
sgsokol commented Sep 4, 2020

Consider the following system and its solution:

from sympy import *
from sympy.abc import j,f

# augmented matrix
a=Matrix([
[1,  1, 1,  1, 1,  1, 1,  1,  1],
[0, -1, 0, -1, 0, -1, 0, -1, -j],
[0,  0, 0,  0, 1,  1, 1,  1,  f]
])

x=Matrix(list(linsolve(a))[0])

# check if x is a solution
a[:,:-1]*x-a[:,-1] # should be all 0 but the second term is 'tau0-tau1'

Do you have an

Powerful modern math library for PHP: Features descriptive statistics and regressions; Continuous and discrete probability distributions; Linear algebra with matrices and vectors, Numerical analysis; special mathematical functions; Algebra

  • Updated Oct 23, 2020
  • PHP

Improve this page

Add a description, image, and links to the math topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the math topic, visit your repo's landing page and select "manage topics."

Learn more

You can’t perform that action at this time.