MCPcopy Index your code
hub / github.com/SLiCAP/SLiCAP_python / _symRoots

Function _symRoots

SLiCAP/SLiCAPmath.py:188–196  ·  view source on GitHub ↗
(expr, var)

Source from the content-addressed store, hash-verified

186 return rts
187
188def _symRoots(expr, var):
189 expr = assumeRealParams(expr)
190 polyExpr = sp.poly(expr, var)
191 rootDict = sp.roots(polyExpr)
192 rts = []
193 for rt in rootDict.keys():
194 for i in range(rootDict[rt]):
195 rts.append(clearAssumptions(rt))
196 return rts
197
198def _numRoots(expr, var):
199 """

Callers 1

_RootsFunction · 0.85

Calls 2

assumeRealParamsFunction · 0.85
clearAssumptionsFunction · 0.85

Tested by

no test coverage detected