values={T: 300, a: 3, f: 6, W: 200}
print sy.solve([
sy.Eq(f, m*a).subs(values),
sy.Eq(T, f*d).subs(values),
sy.Eq(W, m*g).subs(values)
])
>>> For nonlinear systems of equations, symbols should be
given as a list so as to avoid ambiguity in the results.
solve sorted the symbols as [d, g, m]
[(50, 100, 2)]
for ssolve function i am getting...
print ssolve('''
f=a*m
W=g*m
T=d*f
m=?
f=6.0
a=3.0
W=200
g=?
T=300
d=?
''')
raise DomainError("can't compute a Groebner basis over %s" % domain)
DomainError: can't compute a Groebner basis over RR
--
You received this message because you are subscribed to the Google Groups
"sympy" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/sympy/-/WzwVgGGVvlUJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/sympy?hl=en.