Hi

I what version of SymPy did you try this?


On 4 August 2013 15:33, George Gerber <george.ger...@gmail.com> wrote:

> Good day,
> I am trying to solve three force equilibrium equations. I have simplified
> the code below to only 1 equation to better show the error i get
> (typeerror: unhashable type list). The problem appears to be the use of
> piecewise. Would somebody be so kind as to show how to make piecewise and
> solve play along?
>
> from sympy import symbols,solve,Piecewise
> e,emax,smax=symbols('e emax smax')
> s=Piecewise((0,e<=0),(e/emax*smax,e<emax),(smax,True))
> print solve([sigma-1],[e])
>
>
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "sympy" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to sympy+unsubscr...@googlegroups.com.
> To post to this group, send email to sympy@googlegroups.com.
> Visit this group at http://groups.google.com/group/sympy.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"sympy" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sympy+unsubscr...@googlegroups.com.
To post to this group, send email to sympy@googlegroups.com.
Visit this group at http://groups.google.com/group/sympy.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to