ok, i got my first mistake,
the first line in the functoin schould be this:
variables = [var("w" + str(i))for i in range(s.nvertices())]

but anyway, no reason for such a big problem.


Am 29.07.2010 01:15, schrieb Johannes:
> i just tried something with solving a equation, i think i did it the
> wrong way, but still it should not result in this:
>
> def calc_wights_by_sum(s)
>     variables = var(["w" + str(i) for i in range(s.nvertices())])
>     equation = reduce(lambda f1,f2: f1 + f2, [variables[i] * s.vertex(i)
> for i in range(s.nvertices())]) == 0
>     print equation
>     return solve(equation,variables)
>
> sage: calc_wights_by_sum(s)
> False
> Exception RuntimeError: 'maximum recursion depth exceeded in
> __subclasscheck__' in <type 'exceptions.RuntimeError'> ignored
> Exception RuntimeError: RuntimeError('maximum recursion depth exceeded
> in cmp',) in Exception RuntimeError: 'maximum recursion depth exceeded
> in __subclasscheck__' in <type 'exceptions.RuntimeError'> ignored
>  ignored
> Exception RuntimeError: 'maximum recursion depth exceeded in
> __subclasscheck__' in <type 'exceptions.RuntimeError'> ignored
> Exception RuntimeError: RuntimeError('maximum recursion depth exceeded
> in cmp',) in Exception RuntimeError: 'maximum recursion depth exceeded
> in __subclasscheck__' in <type 'exceptions.RuntimeError'> ignored
> [...]
>
> i just helped to kill python by killall -9 python.
>
> greatz Johannes
>
>   

-- 
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to 
sage-devel+unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org

Reply via email to