| 1 | initial version |
This is one of the problems you're having:
sage: ff(scipy.array([1,1]))
TypeError: no canonical coercion from <type 'numpy.int64'> to Symbolic Ring
Which can be remedied as such:
sage: ff(scipy.array([1.,1.]))
2
But this merely exposes another problem:
sage: scipy.optimize.fsolve(ff, scipy.array([1.,1.]))
TypeError: There is a mismatch between the input and output shape of ff.
And I don't know how to solve that one.
Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.